hvplot.ui.hvPlotExplorer#

class hvplot.ui.hvPlotExplorer(df, **params)[source]#
Attributes:
advanced
axes
colormapping
geographic
kind
labels
operations
statusbar
style
x
y

Methods

hvplot()

Return the plot as a HoloViews object.

plot_code([var_name])

Return a string representation that can be easily copy-pasted in a notebook cell to create a plot from a call to the .hvplot accessor, and that includes all the customized settings of the explorer.

save(filename, **kwargs)

Save the plot to file.

settings()

Return a dictionary of the customized settings.

from_data

Parameter Definitions


kind = Selector(label='Kind', names={}, objects=[])

x = Selector(label='X', names={}, objects=[])

y = Selector(label='Y', names={}, objects=[])

y_multi = ListSelector(default=[], names={}, objects=[])

by = ListSelector(default=[], label='By', names={}, objects=[])

groupby = ListSelector(default=[], label='Groupby', names={}, objects=[])

axes = ClassSelector(allow_None=True, class_=<class 'hvplot.ui.Axes'>, label='Axes')

colormapping = ClassSelector(allow_None=True, class_=<class 'hvplot.ui.Colormapping'>, label='Colormapping')

labels = ClassSelector(allow_None=True, class_=<class 'hvplot.ui.Labels'>, label='Labels')

geographic = ClassSelector(allow_None=True, class_=<class 'hvplot.ui.Geographic'>, label='Geographic')

operations = ClassSelector(allow_None=True, class_=<class 'hvplot.ui.Operations'>, label='Operations')

statusbar = ClassSelector(allow_None=True, class_=<class 'hvplot.ui.StatusBar'>, label='Statusbar')

style = ClassSelector(allow_None=True, class_=<class 'hvplot.ui.Style'>, label='Style')

advanced = ClassSelector(allow_None=True, class_=<class 'hvplot.ui.Advanced'>, label='Advanced')

code = String(default='', label='Code')

Code to generate the plot.

__init__(df, **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__(df, **params)

Initialize a Parameterized instance with optional Parameter values.

from_data(data, **params)

hvplot()

Return the plot as a HoloViews object.

plot_code([var_name])

Return a string representation that can be easily copy-pasted in a notebook cell to create a plot from a call to the .hvplot accessor, and that includes all the customized settings of the explorer.

save(filename, **kwargs)

Save the plot to file.

servable([title, location, area, target])

Serves the object or adds it to the configured pn.state.template if in a panel serve context, writes to the DOM if in a pyodide context and returns the Panel object to allow it to display itself in a notebook context.

settings()

Return a dictionary of the customized settings.

show([title, port, address, ...])

Starts a Bokeh server and displays the Viewable in a new tab.

Attributes

advanced

axes

by

code

colormapping

geographic

groupby

kind

labels

name

operations

param

statusbar

style

x

y

y_multi