hvplot.hvplot_extension#

class hvplot.hvplot_extension(*, compatibility, logo, name)[source]#

Helper utility used to load hvPlot/HoloViews extensions and control the notebook environment.

Extends holoviews.util.extension by adding compatibility.

Attributes:
compatibility

Methods

__call__(*args,Ā **params)

Call self as a function.

Notes

  • Installing a data source with e.g. import hvplot.pandas automatically calls this extension, enabling the Bokeh plotting backend.

  • Calling the extension in a notebook environment injects some CSS/HTML/JS content in the cell output, content that is required for the plots to be rendered and interacted with.

Examples

Enable the Bokeh and Matplotlib plotting extensions:

>>> import hvplot
>>> hvplot.extension('bokeh', 'matplotlib')

Parameter Definitions


compatibility = ObjectSelector(allow_None=True, label='Compatibility', names={}, objects=['bokeh', 'matplotlib', 'plotly'])

Plotting library used to process extra keyword arguments.

logo = Boolean(default=False, label='Logo')

__init__(**params)[source]#

Initialize a Parameterized instance with optional Parameter values.

Optional Parameter values must be supplied as keyword arguments (param_name=value), overriding their default values for this one instance. Any parameters not explicitly set will retain their defined default values.

If no name parameter is provided, the instance’s name attribute will default to an identifier string composed of the class name followed by an incremental 5-digit number.

Parameters:
**params

Optional keyword arguments mapping Parameter names to values.

Raises:
TypeError

If one of the keywords of params is not a Parameter name.

Examples

>>> import param
>>> class MyClass(param.Parameterized):
...     value = param.Number(default=10, bounds=(0, 20))
>>> obj = MyClass(value=15)

The value parameter is set to 15 for this instance, overriding the default.

Methods

__init__(**params)

Initialize a Parameterized instance with optional Parameter values.

add_delete_action(action)

add_server_delete_action(action)

instance(**params)

Create and return an instance of this class.

register_backend_callback(backend,Ā callback)

Registers a hook which is run when a backend is loaded

Attributes

compatibility

logo

name

param