Open
Description
.hvplot()
always returns a viewable object that displays itself in Jupyter, but the actual type of what's returned differs depending on the arguments to the .hvplot()
call in ways that can be surprising to users. E.g. see discourse 1485/4, where code that works fine at first stops working when the user wants to control the type of widget used. This issue comes up very often just for +
, which works fine for calls returning HoloViews objects, but fails as soon as something forces it to be a Panel object.
I think there are two ways to improve this situation:
- Continue returning different types depending on the arguments, but make those types behave more similarly (e.g. supporting
+
and other typical operations) wherever possible so that users don't have to worry much about the type differences. - Try to return a consistent type whenever possible, presumably a HoloViews object. Making that work may require storing some "hints" on the HoloViews object so that when Panel encounters it in the actual display machinery, it performs the steps (e.g. substituting the widget type or choosing a different widget location) that are currently done before the object is returned. In this case we should try to make HoloViews layouts more powerful as discussed in More flexible Layout organizations holoviews#91, e.g. by adding a
/
operator to make a column, so that people will rarely need to use a Panel layout directly.
I'm not sure which of these is easier; they both seem difficult!
Metadata
Metadata
Assignees
Labels
No labels