reno.explorer.RunRow#

class reno.explorer.RunRow(trace, config, observations, **params)#

Bases: Viewer

Selector row for a specific simulation run, allowing deletion, inclusion/ exclusion from visualizations in current tab, etc.

Methods

__init__(trace, config, observations, **params)

fire_on_removed()

Trigger all callback functions registered for removed event.

fire_on_selected(selected)

Trigger all callback functions registered for selected event.

from_dict(data)

Deserialize a run into the current instance from the passed data.

on_removed(callback)

Register a function for when a simulation run is removed.

on_selected(callback)

Register a function for when a run is selected or deselected.

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.

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

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

to_dict()

Serialize run row to a dictionary that can be saved to file.

Attributes

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

Subclasses should return a Panel component to be rendered.

fire_on_removed()#

Trigger all callback functions registered for removed event.

fire_on_selected(selected)#

Trigger all callback functions registered for selected event.

Parameters:

selected (bool)

from_dict(data)#

Deserialize a run into the current instance from the passed data.

Parameters:

data (dict)

name = 'RunRow'#
on_removed(callback)#

Register a function for when a simulation run is removed.

Callbacks should take no parameters.

Parameters:

callback (callable)

on_selected(callback)#

Register a function for when a run is selected or deselected.

Callbacks should take a single boolean, True if it’s selected.

Parameters:

callback (callable)

run_name = ''#
to_dict()#

Serialize run row to a dictionary that can be saved to file. Note that currently this can get quite large as the raw trace dictionary is dumped as well.

Return type:

dict

visible = True#