icat.view.InteractiveView#

class icat.view.InteractiveView(model, lcol_width=700, rcol_width=700, **params)#

Bases: Viewer

The GUI/widget dashboard for interacting with the model, data, and anchors.

This class glues all of the events together across the various components (anchorlist, datamanager, ipyanchorviz etc.), and itself is the layout container for the full dashboard.

Parameters:
  • model (icat.Model) – The parent model that this view is associated with.

  • lcol_width (int) – The width of the anchorviz and anchor list widgets.

  • rcol_width (int) – The width of the datamanager and histograms.

Methods

__init__(model[, lcol_width, rcol_width])

on_selected_points_change(callback)

Register a callback function for the "anchor added" event.

refresh_data()

Refresh all components with the latest active_data from parent model's DataManager.

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.

Attributes

name

param

name = 'InteractiveView'#
on_selected_points_change(callback)#

Register a callback function for the “anchor added” event.

Callbacks for this event should take a single parameter which is list of selected point IDs (strings most likely).

Parameters:

callback (Callable) –

refresh_data()#

Refresh all components with the latest active_data from parent model’s DataManager.