You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The link_selections functionality is one of the most powerful features in HoloViews and while it is tightly coupled with HoloViews internals, the basic concept is actually quite general. Specifically the core of it involves taking selections and applying them to different datasets, something that could easily be leveraged by other libraries, such as Panel, to allow selections on plots and other visual components to be synced.
The main things that are missing to make this easier are a few APIs to set this up manually:
update_selection(name: str, dimension: str | Dimension, selection: tuple[number, number] | list[any] | constant): An API to manually add a selection along a particular dimension. By giving each selection a unique name they can be updated easily.
compute_mask(dataframe: DataFrameLike | Dataset): Returns a set of indices of the selected rows
These two APIs would be sufficient for components in Panel and other libraries to use link_selections more effectively. Beyond that we could consider implementing a plugin API where external components can register handlers that would make it possible to call link_selections on objects of a particular type, e.g. making this possible:
The
link_selections
functionality is one of the most powerful features in HoloViews and while it is tightly coupled with HoloViews internals, the basic concept is actually quite general. Specifically the core of it involves taking selections and applying them to different datasets, something that could easily be leveraged by other libraries, such as Panel, to allow selections on plots and other visual components to be synced.The main things that are missing to make this easier are a few APIs to set this up manually:
update_selection(name: str, dimension: str | Dimension, selection: tuple[number, number] | list[any] | constant)
: An API to manually add a selection along a particular dimension. By giving each selection a unique name they can be updated easily.compute_mask(dataframe: DataFrameLike | Dataset)
: Returns a set of indices of the selected rowsThese two APIs would be sufficient for components in Panel and other libraries to use
link_selections
more effectively. Beyond that we could consider implementing a plugin API where external components can register handlers that would make it possible to calllink_selections
on objects of a particular type, e.g. making this possible:Internally this would effectively do the following:
The text was updated successfully, but these errors were encountered: