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
- hvobj
- 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:
- hvobj
Element
orDynamicMap
orLayout
Potentially dynamic HoloViews object to represent as a HoloviewsExpr
- kdims
list
of
Dimensions
List that DynamicMap key-dimension objects should be added to
- streams
list
of
Stream
List that cloned extracted streams should be added to
- original_streams
list
of
Stream
List that original extracted streams should be added to
- stream_mapping
dict
dict to be populated with mappings from container keys to extracted Stream objects, as described by the Callable parameter of the same name.
- container_key
int
ortuple
key into parent container that is associated to hvobj, or None if hvobj is not in a container
- hvobj
- Returns:
HoloviewsExpr
expression
representing
hvobj
if
hvobj
is
dynamic. Otherwise,return
hvobj
itself