hvplot.ui.hvPlotExplorer.plot_code#
- hvPlotExplorer.plot_code(var_name=None)[source]#
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.
>>> hvexplorer.plot_code(var_name='data') "data.hvplot(x='time', y='value')"
- Parameters:
- var_name: string
Data variable name by which the returned string will start.
- Returns:
- str
Code snippet