icat.view.InteractiveView#

class icat.view.InteractiveView(model, **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.

Methods

__init__(model, **params)

debug(**kwargs)

Inspect .param.debug method for the full docstring

defaults(**kwargs)

Inspect .param.defaults method for the full docstring

force_new_dynamic_value(**kwargs)

Inspect .param.force_new_dynamic_value method for the full docstring

get_param_values(**kwargs)

Inspect .param.get_param_values method for the full docstring

get_value_generator(**kwargs)

Inspect .param.get_value_generator method for the full docstring

inspect_value(**kwargs)

Inspect .param.inspect_value method for the full docstring

message(**kwargs)

Inspect .param.message method for the full docstring

on_selected_points_change(callback)

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

params(**kwargs)

Inspect .param.params method for the full docstring

pprint(*args, **kwargs)

print_param_defaults(*args, **kwargs)

Inspect .param.print_param_defaults method for the full docstring

print_param_values(**kwargs)

Inspect .param.print_param_values method for the full docstring

refresh_data()

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

script_repr([imports, prefix])

Deprecated variant of __repr__ designed for generating a runnable script.

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.

set_default(*args, **kwargs)

Inspect .param.set_default method for the full docstring

set_dynamic_time_fn(**kwargs)

Inspect .param.set_dynamic_time_fn method for the full docstring

set_param(**kwargs)

Inspect .param.set_param method for the full docstring

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

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

state_pop()

Restore the most recently saved state.

state_push()

Save this instance's state.

verbose(**kwargs)

Inspect .param.verbose method for the full docstring

warning(**kwargs)

Inspect .param.warning method for the full docstring

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.