streams Module

streams Module

The streams module defines the streams API that allows visualizations to generate and respond to events, originating either in Python on the server-side or in Javascript in the Jupyter notebook (client-side).

class holoviews.streams.BoundsX(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

A stream representing the bounds of a box selection as an tuple of the left and right coordinates.

boundsx = param.Tuple(length=2)

Bounds defined as (left, right) tuple.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsX'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsX'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsX'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsX'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsX'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsX'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsX'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.BoundsXY(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

A stream representing the bounds of a box selection as an tuple of the left, bottom, right and top coordinates.

bounds = param.Tuple(length=4)

Bounds defined as (left, bottom, right, top) tuple.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsXY'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsXY'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsXY'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsXY'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsXY'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsXY'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsXY'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.BoundsY(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

A stream representing the bounds of a box selection as an tuple of the bottom and top coordinates.

boundsy = param.Tuple(length=2)

Bounds defined as (bottom, top) tuple.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsY'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsY'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsY'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsY'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsY'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsY'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoundsY'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.BoxEdit(empty_value=None, num_objects=0, styles={}, tooltip=None, **params)[source]

Bases: holoviews.streams.CDSStream

Attaches a BoxEditTool and syncs the datasource.

empty_value: int/float/string/None

The value to insert on non-position columns when adding a new box

num_objects: int

The number of boxes that can be drawn before overwriting the oldest drawn box.

styles: dict

A dictionary specifying lists of styles to cycle over whenever a new box glyph is drawn.

tooltip: str

An optional tooltip to override the default

data = param.Dict(class_=<class ‘dict’>)

Data synced from Bokeh ColumnDataSource supplied as a dictionary of columns, where each column is a list of values (for point-like data) or list of lists of values (for path-like data).

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoxEdit'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoxEdit'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoxEdit'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoxEdit'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoxEdit'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoxEdit'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.BoxEdit'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.Buffer(data, length=1000, index=True, following=True, **params)[source]

Bases: holoviews.streams.Pipe

Buffer allows streaming and accumulating incoming chunks of rows from tabular datasets. The data may be in the form of a pandas DataFrame, 2D arrays of rows and columns or dictionaries of column arrays. Buffer will accumulate the last N rows, where N is defined by the specified length. The accumulated data is then made available via the data parameter.

A Buffer may also be instantiated with a streamz.StreamingDataFrame or a streamz.StreamingSeries, it will automatically subscribe to events emitted by a streamz object.

When streaming a DataFrame will reset the DataFrame index by default making it available to HoloViews elements as dimensions, this may be disabled by setting index=False.

The following argument determines whether any plot which is subscribed to this stream will update the axis ranges when an update is pushed. This makes it possible to control whether zooming is allowed while streaming.

data = param.Parameter()

Arbitrary data being streamed to a DynamicMap callback.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear()[source]

Clears the data in the stream

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Buffer'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Buffer'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Buffer'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Buffer'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Buffer'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

send(data)

A convenience method to send an event with data without supplying a keyword.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Buffer'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Buffer'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)[source]

Overrides update to concatenate streamed data up to defined length.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

verify(x)[source]

Verify consistency of dataframes that pass through this stream

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.CDSStream(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

A Stream that syncs a bokeh ColumnDataSource with python.

data = param.Dict(class_=<class ‘dict’>)

Data synced from Bokeh ColumnDataSource supplied as a dictionary of columns, where each column is a list of values (for point-like data) or list of lists of values (for path-like data).

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CDSStream'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CDSStream'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CDSStream'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CDSStream'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CDSStream'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CDSStream'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CDSStream'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.Counter(rename={}, source=None, subscribers=[], linked=False, transient=False, **params)[source]

Bases: holoviews.streams.Stream

Simple stream that automatically increments an integer counter parameter every time it is updated.

counter = param.Integer(bounds=(0, None), default=0, inclusive_bounds=(True, True), time_dependent=False, time_fn=Time(label=’Time’, name=’Time00001’, time_type=<class ‘int’>, timestep=1.0, unit=None, until=Infinity()))

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Counter'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Counter'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Counter'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Counter'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Counter'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Counter'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Counter'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()[source]

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.CurveEdit(style={}, tooltip=None, **params)[source]

Bases: holoviews.streams.PointDraw

Attaches a PointDraw to the plot which allows editing the Curve when selected.

style: dict

A dictionary specifying the style of the vertices.

tooltip: str

An optional tooltip to override the default

data = param.Dict(class_=<class ‘dict’>)

Data synced from Bokeh ColumnDataSource supplied as a dictionary of columns, where each column is a list of values (for point-like data) or list of lists of values (for path-like data).

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CurveEdit'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CurveEdit'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CurveEdit'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CurveEdit'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CurveEdit'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CurveEdit'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.CurveEdit'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.DoubleTap(linked=True, **params)[source]

Bases: holoviews.streams.PointerXY

The x/y-position of a double-tap or -click in data coordinates.

x = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the x-axis in data coordinates

y = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the y-axis in data coordinates

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.DoubleTap'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.DoubleTap'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.DoubleTap'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.DoubleTap'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.DoubleTap'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.DoubleTap'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.DoubleTap'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.Draw(linked=True, **params)[source]

Bases: holoviews.streams.PointerXY

A series of updating x/y-positions when drawing, together with the current stroke count

x = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the x-axis in data coordinates

y = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the y-axis in data coordinates

stroke_count = param.Integer(default=0, inclusive_bounds=(True, True), time_dependent=False, time_fn=Time(label=’Time’, name=’Time00001’, time_type=<class ‘int’>, timestep=1.0, unit=None, until=Infinity()))

The current drawing stroke count. Increments every time a new stroke is started.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Draw'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Draw'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Draw'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Draw'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Draw'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Draw'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Draw'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.FreehandDraw(empty_value=None, num_objects=0, styles={}, tooltip=None, **params)[source]

Bases: holoviews.streams.CDSStream

Attaches a FreehandDrawTool and syncs the datasource.

empty_value: int/float/string/None

The value to insert on non-position columns when adding a new polygon

num_objects: int

The number of polygons that can be drawn before overwriting the oldest polygon.

styles: dict

A dictionary specifying lists of styles to cycle over whenever a new freehand glyph is drawn.

tooltip: str

An optional tooltip to override the default

data = param.Dict(class_=<class ‘dict’>)

Data synced from Bokeh ColumnDataSource supplied as a dictionary of columns, where each column is a list of values (for point-like data) or list of lists of values (for path-like data).

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.FreehandDraw'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.FreehandDraw'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.FreehandDraw'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.FreehandDraw'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.FreehandDraw'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.FreehandDraw'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.FreehandDraw'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.LinkedStream(linked=True, **params)[source]

Bases: holoviews.streams.Stream

A LinkedStream indicates is automatically linked to plot interactions on a backend via a Renderer. Not all backends may support dynamically supplying stream data.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.LinkedStream'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.LinkedStream'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.LinkedStream'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.LinkedStream'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.LinkedStream'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.LinkedStream'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.LinkedStream'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.MouseEnter(linked=True, **params)[source]

Bases: holoviews.streams.PointerXY

The x/y-position where the mouse/cursor entered the plot area in data coordinates.

x = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the x-axis in data coordinates

y = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the y-axis in data coordinates

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseEnter'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseEnter'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseEnter'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseEnter'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseEnter'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseEnter'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseEnter'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.MouseLeave(linked=True, **params)[source]

Bases: holoviews.streams.PointerXY

The x/y-position where the mouse/cursor entered the plot area in data coordinates.

x = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the x-axis in data coordinates

y = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the y-axis in data coordinates

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseLeave'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseLeave'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseLeave'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseLeave'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseLeave'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseLeave'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.MouseLeave'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.ParamMethod(parameterized, parameters=None, watch=True, **params)[source]

Bases: holoviews.streams.Params

A Stream that watches the parameter dependencies on a method of a parameterized class and triggers when one of the parameters change.

parameterized = param.ClassSelector(class_=(<class ‘param.parameterized.Parameterized’>, <class ‘param.parameterized.ParameterizedMetaclass’>))

Parameterized instance to watch for parameter changes.

parameters = param.List(bounds=(0, None), default=[])

Parameters on the parameterized to watch.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.ParamMethod'>)
classmethod from_params(params, **kwargs)

Returns Params streams given a dictionary of parameters

Args:

params (dict): Dictionary of parameters

Returns:

List of Params streams

get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.ParamMethod'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.ParamMethod'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.ParamMethod'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.ParamMethod'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.ParamMethod'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.ParamMethod'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.Params(parameterized=None, parameters=None, watch=True, watch_only=False, **params)[source]

Bases: holoviews.streams.Stream

A Stream that watches the changes in the parameters of the supplied Parameterized objects and triggers when they change.

parameterized = param.ClassSelector(class_=(<class ‘param.parameterized.Parameterized’>, <class ‘param.parameterized.ParameterizedMetaclass’>))

Parameterized instance to watch for parameter changes.

parameters = param.List(bounds=(0, None), default=[])

Parameters on the parameterized to watch.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Params'>)
classmethod from_params(params, **kwargs)[source]

Returns Params streams given a dictionary of parameters

Args:

params (dict): Dictionary of parameters

Returns:

List of Params streams

get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Params'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Params'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Params'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Params'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()[source]

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Params'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Params'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)[source]

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.Pipe(data=None, memoize=False, **params)[source]

Bases: holoviews.streams.Stream

A Stream used to pipe arbitrary data to a callback. Unlike other streams memoization can be disabled for a Pipe stream (and is disabled by default).

data = param.Parameter()

Arbitrary data being streamed to a DynamicMap callback.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Pipe'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Pipe'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Pipe'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Pipe'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Pipe'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

send(data)[source]

A convenience method to send an event with data without supplying a keyword.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Pipe'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Pipe'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.PlotReset(*args, **params)[source]

Bases: holoviews.streams.LinkedStream

A stream signalling when a plot reset event has been triggered.

resetting = param.Boolean(bounds=(0, 1), default=False)

Whether a reset event is being signalled.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotReset'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotReset'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotReset'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotReset'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotReset'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotReset'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotReset'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.PlotSize(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

Returns the dimensions of a plot once it has been displayed.

width = param.Integer(inclusive_bounds=(True, True), time_dependent=False, time_fn=Time(label=’Time’, name=’Time00001’, time_type=<class ‘int’>, timestep=1.0, unit=None, until=Infinity()))

The width of the plot in pixels

height = param.Integer(inclusive_bounds=(True, True), time_dependent=False, time_fn=Time(label=’Time’, name=’Time00001’, time_type=<class ‘int’>, timestep=1.0, unit=None, until=Infinity()))

The height of the plot in pixels

scale = param.Number(default=1.0, inclusive_bounds=(True, True), time_dependent=False, time_fn=Time(label=’Time’, name=’Time00001’, time_type=<class ‘int’>, timestep=1.0, unit=None, until=Infinity()))

Scale factor to scale width and height values reported by the stream

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotSize'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotSize'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotSize'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotSize'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotSize'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotSize'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PlotSize'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()[source]

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.PointDraw(empty_value=None, add=True, drag=True, num_objects=0, styles={}, tooltip=None, **params)[source]

Bases: holoviews.streams.CDSStream

Attaches a PointDrawTool and syncs the datasource.

add: boolean

Whether to allow adding new Points

drag: boolean

Whether to enable dragging of Points

empty_value: int/float/string/None

The value to insert on non-position columns when adding a new polygon

num_objects: int

The number of polygons that can be drawn before overwriting the oldest polygon.

styles: dict

A dictionary specifying lists of styles to cycle over whenever a new Point glyph is drawn.

tooltip: str

An optional tooltip to override the default

data = param.Dict(class_=<class ‘dict’>)

Data synced from Bokeh ColumnDataSource supplied as a dictionary of columns, where each column is a list of values (for point-like data) or list of lists of values (for path-like data).

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointDraw'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointDraw'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointDraw'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointDraw'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointDraw'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointDraw'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointDraw'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.PointerX(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

A pointer position along the x-axis in data coordinates which may be a numeric or categorical dimension.

With the appropriate plotting backend, this corresponds to the position of the mouse/trackpad cursor. If the pointer is outside the plot bounds, the position is set to None.

x = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the x-axis in data coordinates

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerX'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerX'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerX'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerX'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerX'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerX'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerX'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.PointerXY(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

A pointer position along the x- and y-axes in data coordinates which may numeric or categorical dimensions.

With the appropriate plotting backend, this corresponds to the position of the mouse/trackpad pointer. If the pointer is outside the plot bounds, the position values are set to None.

x = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the x-axis in data coordinates

y = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the y-axis in data coordinates

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerXY'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerXY'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerXY'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerXY'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerXY'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerXY'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerXY'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.PointerY(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

A pointer position along the y-axis in data coordinates which may be a numeric or categorical dimension.

With the appropriate plotting backend, this corresponds to the position of the mouse/trackpad pointer. If the pointer is outside the plot bounds, the position is set to None.

y = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the y-axis in data coordinates

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerY'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerY'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerY'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerY'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerY'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerY'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PointerY'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.PolyDraw(empty_value=None, drag=True, num_objects=0, show_vertices=False, vertex_style={}, styles={}, tooltip=None, **params)[source]

Bases: holoviews.streams.CDSStream

Attaches a PolyDrawTool and syncs the datasource.

drag: boolean

Whether to enable dragging of polygons and paths

empty_value: int/float/string/None

The value to insert on non-position columns when adding a new polygon

num_objects: int

The number of polygons that can be drawn before overwriting the oldest polygon.

show_vertices: boolean

Whether to show the vertices when a polygon is selected

styles: dict

A dictionary specifying lists of styles to cycle over whenever a new Poly glyph is drawn.

tooltip: str

An optional tooltip to override the default

vertex_style: dict

A dictionary specifying the style options for the vertices. The usual bokeh style options apply, e.g. fill_color, line_alpha, size, etc.

data = param.Dict(class_=<class ‘dict’>)

Data synced from Bokeh ColumnDataSource supplied as a dictionary of columns, where each column is a list of values (for point-like data) or list of lists of values (for path-like data).

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyDraw'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyDraw'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyDraw'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyDraw'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyDraw'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyDraw'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyDraw'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.PolyEdit(vertex_style={}, shared=True, **params)[source]

Bases: holoviews.streams.PolyDraw

Attaches a PolyEditTool and syncs the datasource.

shared: boolean

Whether PolyEditTools should be shared between multiple elements

tooltip: str

An optional tooltip to override the default

vertex_style: dict

A dictionary specifying the style options for the vertices. The usual bokeh style options apply, e.g. fill_color, line_alpha, size, etc.

data = param.Dict(class_=<class ‘dict’>)

Data synced from Bokeh ColumnDataSource supplied as a dictionary of columns, where each column is a list of values (for point-like data) or list of lists of values (for path-like data).

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyEdit'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyEdit'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyEdit'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyEdit'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyEdit'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyEdit'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.PolyEdit'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.RangeX(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

Axis range along x-axis in data coordinates.

x_range = param.Tuple(length=2)

Range of the x-axis of a plot in data coordinates

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeX'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeX'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeX'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeX'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeX'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeX'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeX'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.RangeXY(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

Axis ranges along x- and y-axis in data coordinates.

x_range = param.Tuple(length=2)

Range of the x-axis of a plot in data coordinates

y_range = param.Tuple(length=2)

Range of the y-axis of a plot in data coordinates

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeXY'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeXY'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeXY'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeXY'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeXY'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeXY'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeXY'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.RangeY(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

Axis range along y-axis in data coordinates.

y_range = param.Tuple(length=2)

Range of the y-axis of a plot in data coordinates

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeY'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeY'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeY'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeY'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeY'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeY'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.RangeY'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.Selection1D(linked=True, **params)[source]

Bases: holoviews.streams.LinkedStream

A stream representing a 1D selection of objects by their index.

index = param.List(bounds=(0, None), default=[])

Indices into a 1D datastructure.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Selection1D'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Selection1D'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Selection1D'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Selection1D'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Selection1D'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Selection1D'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Selection1D'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.SelectionExpr(source, **params)[source]

Bases: holoviews.streams.Stream

selection_expr = param.Parameter()

bbox = param.Dict(class_=<class ‘dict’>)

region_element = param.Parameter()

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionExpr'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionExpr'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionExpr'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionExpr'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionExpr'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionExpr'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionExpr'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.SelectionXY(linked=True, **params)[source]

Bases: holoviews.streams.BoundsXY

A stream representing the selection along the x-axis and y-axis. Unlike a BoundsXY stream, this stream returns range or categorical selections.

bounds = param.Tuple(length=4)

Bounds defined as (left, bottom, right, top) tuple.

x_selection = param.ClassSelector(class_=(<class ‘tuple’>, <class ‘list’>))

The current selection along the x-axis, either a numerical range defined as a tuple or a list of categories.

y_selection = param.ClassSelector(class_=(<class ‘tuple’>, <class ‘list’>))

The current selection along the y-axis, either a numerical range defined as a tuple or a list of categories.

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionXY'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionXY'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionXY'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionXY'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionXY'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionXY'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SelectionXY'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.SingleTap(linked=True, **params)[source]

Bases: holoviews.streams.PointerXY

The x/y-position of a single tap or click in data coordinates.

x = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the x-axis in data coordinates

y = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the y-axis in data coordinates

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SingleTap'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SingleTap'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SingleTap'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SingleTap'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SingleTap'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SingleTap'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.SingleTap'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.Stream(rename={}, source=None, subscribers=[], linked=False, transient=False, **params)[source]

Bases: param.parameterized.Parameterized

A Stream is simply a parameterized object with parameters that change over time in response to update events and may trigger downstream events on its subscribers. The Stream parameters can be updated using the update method, which will optionally trigger the stream. This will notify the subscribers which may be supplied as a list of callables or added later using the add_subscriber method. The subscribers will be passed a dictionary mapping of the parameters of the stream, which are available on the instance as the contents.

Depending on the plotting backend certain streams may interactively subscribe to events and changes by the plotting backend. For this purpose use the LinkedStream baseclass, which enables the linked option by default. A source for the linking may be supplied to the constructor in the form of another viewable object specifying which part of a plot the data should come from.

The transient option allows treating stream events as discrete updates, resetting the parameters to their default after the stream has been triggered. A downstream callback can therefore determine whether a stream is active by checking whether the stream values match the default (usually None).

The Stream class is meant for subclassing and subclasses should generally add one or more parameters but may also override the transform and reset method to preprocess parameters before they are passed to subscribers and reset them using custom logic respectively.

add_subscriber(subscriber, precedence=0)[source]

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')[source]

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)[source]

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)[source]

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Stream'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Stream'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Stream'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Stream'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Stream'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)[source]

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()[source]

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Stream'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Stream'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()[source]

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)[source]

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)[source]

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

class holoviews.streams.Tap(linked=True, **params)[source]

Bases: holoviews.streams.PointerXY

The x/y-position of a tap or click in data coordinates.

x = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the x-axis in data coordinates

y = param.ClassSelector(class_=(<class ‘numbers.Number’>, <class ‘str’>, <class ‘tuple’>, <class ‘numpy.datetime64’>, <class ‘datetime.datetime’>, <class ‘datetime.date’>, <class ‘datetime.time’>, <class ‘pandas._libs.tslibs.timestamps.Timestamp’>, <class ‘pandas.core.dtypes.dtypes.DatetimeTZDtype’>, <class ‘pandas._libs.tslibs.period.Period’>, <class ‘cftime._cftime.datetime’>))

Pointer position along the y-axis in data coordinates

add_subscriber(subscriber, precedence=0)

Register a callable subscriber to this stream which will be invoked either when event is called or when this stream is passed to the trigger classmethod.

Precedence allows the subscriber ordering to be controlled. Users should only add subscribers with precedence between zero and one while HoloViews itself reserves the use of higher precedence values. Subscribers with high precedence are invoked later than ones with low precedence.

clear(policy='all')

Clear all subscribers registered to this stream.

The default policy of ‘all’ clears all subscribers. If policy is set to ‘user’, only subscribers defined by the user are cleared (precedence between zero and one). A policy of ‘internal’ clears subscribers with precedence greater than unity used internally by HoloViews.

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

classmethod define(name, **kwargs)

Utility to quickly and easily declare Stream classes. Designed for interactive use such as notebooks and shouldn’t replace parameterized class definitions in source code that is imported.

Takes a stream class name and a set of keywords where each keyword becomes a parameter. If the value is already a parameter, it is simply used otherwise the appropriate parameter type is inferred and declared, using the value as the default.

Supported types: bool, int, float, str, dict, tuple and list

event(**kwargs)

Update the stream parameters and trigger an event.

force_new_dynamic_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Tap'>)
get_param_values = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Tap'>)
get_value_generator = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Tap'>)
property hashkey

The object the memoization hash is computed from. By default returns the stream contents but can be overridden to provide a custom hash key.

inspect_value = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Tap'>)
message(**kwargs)

Inspect .param.message method for the full docstring

params = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Tap'>)
pprint(imports=None, prefix=' ', unknown_value='<?>', qualify=False, separator='')

(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.

classmethod print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

rename(**mapping)

The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.

reset()

Resets stream parameters to their defaults.

script_repr(imports=[], prefix=' ')

Variant of __repr__ designed for generating a runnable script.

classmethod set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Tap'>)
set_param = functools.partial(<function Parameters.deprecate.<locals>.inner>, <class 'holoviews.streams.Tap'>)
state_pop()

Restore the most recently saved state.

See state_push() for more details.

state_push()

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

property subscribers

Property returning the subscriber list

transform()

Method that can be overwritten by subclasses to process the parameter values before renaming is applied. Returns a dictionary of transformed parameters.

classmethod trigger(streams)

Given a list of streams, collect all the stream parameters into a dictionary and pass it to the union set of subscribers.

Passing multiple streams at once to trigger can be useful when a subscriber may be set multiple times across streams but only needs to be called once.

update(**kwargs)

The update method updates the stream parameters (without any renaming applied) in response to some event. If the stream has a custom transform method, this is applied to transform the parameter values accordingly.

To update and trigger, use the event method.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

holoviews.streams.triggering_streams(streams)[source]

Temporarily declares the streams as being in a triggered state. Needed by DynamicMap to determine whether to memoize on a Callable, i.e. if a stream has memoization disabled and is in triggered state Callable should disable lookup in the memoization cache. This is done by the dynamicmap_memoization context manager.