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: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]#

Methods

__init__(**params)

add_delete_action(action)

add_server_delete_action(action)

instance(**params)

Return an instance of this class, copying parameters from any existing instance provided.

register_backend_callback(backend, callback)

Registers a hook which is run when a backend is loaded

Attributes

compatibility

logo

name

param