reno.explorer.PlotsPane#

class reno.explorer.PlotsPane(model, **params)#

Bases: WidgetBase, PyComponent, Reactive

A model exploration widget that can be displayed within a tab, customizable set of timeseries/density plots for various parts of the model.

Methods

__init__(model, **params)

clone(**params)

Makes a copy of the object sharing the same parameters.

controls([parameters, jslink])

Creates a set of widgets which allow manipulating the parameters on this instance.

embed([max_states, max_opts, json, ...])

Renders a static version of a panel in a notebook by evaluating the set of states defined by the widgets in the model.

fire_on_cache_invalidated()

Trigger all callback functions registered for the cache_invalidated event.

from_dict(data)

Deserialize data into current instance from dictionary previously stored from to_dict().

from_param(parameter, **params)

Construct a widget from a Parameter and link the two bi-directionally.

from_values(values, **params)

Creates an instance of this Widget where the parameters are inferred from the data.

get_root([doc, comm, preprocess])

Returns the root model and applies pre-processing hooks

jscallback([args])

Allows defining a JS callback to be triggered when a property changes on the source object.

jslink(target[, code, args, bidirectional])

Links properties on the this Reactive object to those on the target Reactive object in JS code.

link(target[, callbacks, bidirectional])

Links the parameters on this Reactive object to attributes on the target Parameterized object.

on_cache_invalidated(callback)

Register a callback for any time a previous exported file will no longer match/cached file is no longer valid or current.

render([traces])

Update the visible components of this widget.

save(filename[, title, resources, template, ...])

Saves Panel objects to file.

select([selector])

Iterates over the Viewable and any potential children in the applying the Selector.

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.

server_doc([doc, title, location])

Returns a serveable bokeh Document with the panel attached

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

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

to_dict()

Serialize this pane to a dictionary that can be saved to file.

to_html()

Get an HTML-compatible string for the contents of this pane.

update_plot_type(*args)

Event handler for when a different preset is selected.

update_subset(*args)

Whenever the 'preset subset' option changes, update the actual subset of references being used.

Attributes

align

aspect_ratio

columns

css_classes

design

fig_height

fig_width

height

height_policy

loading

margin

max_height

max_width

min_height

min_width

name

param

plot_type

This selector represents a few reasonable defaults for things you might want to see.

ref_subset

Resolved list of references to show, taking into account plot_type and subset.

rx

sizing_mode

styles

stylesheets

subset

tags

value

visible

width

width_policy

base64repr

base64 encoded version of the image of the plots, used for embedding directly into html (see to_html()), set in render().

__annotations__ = {}#
__module__ = 'reno.explorer'#
__panel__()#
base64repr#

base64 encoded version of the image of the plots, used for embedding directly into html (see to_html()), set in render().

columns = 2#
fig_height = 6#
fig_width = 10#
fire_on_cache_invalidated()#

Trigger all callback functions registered for the cache_invalidated event.

from_dict(data)#

Deserialize data into current instance from dictionary previously stored from to_dict().

Parameters:

data (dict)

name = 'PlotsPane'#
on_cache_invalidated(callback)#

Register a callback for any time a previous exported file will no longer match/cached file is no longer valid or current.

Parameters:

callback (Callable)

plot_type = 'Variables/Metrics'#

This selector represents a few reasonable defaults for things you might want to see. These alter the base set of references shown in the subset dropdown, which can be used to further refine which plots to show.

ref_subset = []#

Resolved list of references to show, taking into account plot_type and subset.

render(traces=None)#

Update the visible components of this widget. We save a base64 representation of the plot so it can be used in the to_html() call.

subset = []#
to_dict()#

Serialize this pane to a dictionary that can be saved to file.

Return type:

dict

to_html()#

Get an HTML-compatible string for the contents of this pane. This is used for generating exported standalone reports, see tab_exporter.

For this pane, this works by creating a base64 representation of the plot image and embedding that directly in the string output.

Return type:

str

update_plot_type(*args)#

Event handler for when a different preset is selected.

update_subset(*args)#

Whenever the ‘preset subset’ option changes, update the actual subset of references being used.