reno.explorer.MainView#

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

Bases: Viewer

The exploration tab container, central view of graphs/plots etc., between the two sidebars.

Methods

__init__(model, **params)

create_tab()

Make a new tab/gridstack contents and hook up all relevant event handlers for it.

fire_on_new_controls_needed(controls_layout)

Trigger the callbacks for the new_controls_needed event.

from_dict(data, traces)

Deserialize all tabs and simulation runs from passed data and insert them into this instance.

on_new_controls_needed(callback)

Register a function to execute whenever a widget within the tab requests a new set of helper controls be displayed in the sidebar.

refresh_tab_contents()

Refresh tabs and panels inside of them/re-send to frontend.

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 every tab to a dictionary that can be saved to file.

update_traces(traces)

Change the traces being used in the current tab with those passed in.

Attributes

name

param

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

Subclasses should return a Panel component to be rendered.

create_tab()#

Make a new tab/gridstack contents and hook up all relevant event handlers for it.

fire_on_new_controls_needed(controls_layout)#

Trigger the callbacks for the new_controls_needed event.

from_dict(data, traces)#

Deserialize all tabs and simulation runs from passed data and insert them into this instance.

Parameters:
  • data (dict)

  • traces (dict)

name = 'MainView'#
on_new_controls_needed(callback)#

Register a function to execute whenever a widget within the tab requests a new set of helper controls be displayed in the sidebar.

Callbacks should take a panel widget.

Parameters:

callback (Callable)

refresh_tab_contents()#

Refresh tabs and panels inside of them/re-send to frontend.

to_dict()#

Serialize every tab to a dictionary that can be saved to file.

Return type:

dict

update_traces(traces)#

Change the traces being used in the current tab with those passed in.