reno.explorer.MainView#
- class reno.explorer.MainView(model, **params)#
Bases:
ViewerThe exploration tab container, central view of graphs/plots etc., between the two sidebars.
Methods
__init__(model, **params)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 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
paramThe row along the bottom of the main view with the add dashboard pane buttons.
The list of panel tab tuples, this is what gets applied to the panel tabs layout.
- Parameters:
model (reno.Model)
params (dict)
- __annotations__ = {}#
- __module__ = 'reno.explorer'#
- __panel__()#
Required function to return the actual frontend component.
- Return type:
Viewable
- create_tab()#
Make a new tab/gridstack contents and hook up all relevant event handlers for it.
- Return type:
- dashboard_pane_btns#
The row along the bottom of the main view with the add dashboard pane buttons.
- fire_on_new_controls_needed(controls_layout)#
Trigger the callbacks for the new_controls_needed event.
- Parameters:
controls_layout (list[Viewable])
- Return type:
None
- from_dict(data, traces)#
Deserialize all tabs and simulation runs from passed data and insert them into this instance.
- Parameters:
data (dict)
traces (dict)
- Return type:
None
- 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 list of panel viewables.
- Parameters:
callback (Callable)
- Return type:
None
- refresh_tab_contents()#
Refresh tabs and panels inside of them/re-send to frontend.
- Return type:
None
- tab_contents#
The list of panel tab tuples, this is what gets applied to the panel tabs layout.
- 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.
- Parameters:
traces (dict[str, tuple])
- Return type:
None