holoviews.core.decollate module#
- holoviews.core.decollate.Expr#
alias of
HoloviewsExpr
- holoviews.core.decollate.KDimIndex#
alias of
KDim
- holoviews.core.decollate.decollate(hvobj)[source]#
Decollate transforms a potentially nested dynamic HoloViews object into single DynamicMap that returns a non-dynamic HoloViews object. All nested streams in the input object are copied and attached to the resulting DynamicMap.
Parameters#
hvobj : Holoviews object
Returns#
DynamicMap
- holoviews.core.decollate.to_expr_extract_streams(hvobj, kdims, streams, original_streams, stream_mapping, container_key=None)[source]#
Build a HoloViewsExpr expression tree from a potentially nested dynamic HoloViews object, extracting the streams and replacing them with StreamIndex objects.
This function is recursive an assumes that initialize_dynamic has already been called on the input object.
Parameters#
- hvobjElement or DynamicMap or Layout
Potentially dynamic HoloViews object to represent as a HoloviewsExpr
- kdimslist of Dimensions
List that DynamicMap key-dimension objects should be added to
- streamslist of Stream
List that cloned extracted streams should be added to
- original_streamslist of Stream
List that original extracted streams should be added to
- stream_mappingdict
dict to be populated with mappings from container keys to extracted Stream objects, as described by the Callable parameter of the same name.
- container_keyint or tuple
key into parent container that is associated to hvobj, or None if hvobj is not in a container
Returns#
HoloviewsExpr expression representing hvobj if hvobj is dynamic. Otherwise, return hvobj itself