The comm target name to register
A loader for a given module name and module version, and returns a promise to a module
Renderers for contents of the output widgets
Defines how outputs in the output widget should be rendered.
Fetch all widgets states from the kernel using the control comm channel
If this fails (control comm handler not implemented kernel side),
it will fall back to _loadFromKernelModels.
This is a utility function that can be used in subclasses.
Old implementation of fetching widget models one by one using the request_state message on each comm.
This is a utility function that can be used in subclasses.
Close all widgets and empty the widget state.
Promise that resolves when the widget state is cleared.
Creates a promise for a view of a given model
The implementation must trigger the Lumino 'after-attach' and 'after-show' events when appropriate, which in turn will trigger the view's 'displayed' events.
Make sure the view creation is not out of order with any state updates.
Disconnect the widget manager from the kernel, setting each model's comm as dead.
Filter serialized widget state to remove any ID's already present in manager.
A copy of the state, with its 'state' attribute filtered
Get a promise for a model by model id.
If the model is not found, the returned Promise object is rejected.
If you would like to synchronously test if a model exists, use .has_model().
Asynchronously get the state of the widget manager.
This includes all of the widget models, and follows the format given in the @jupyter-widgets/schema package.
The options for what state to return.
Promise for a state dictionary
Handle when a comm is opened.
Returns true if the given model is registered, otherwise false.
This is a synchronous way to check if a model is registered.
Create and return a promise for a new widget model
the options for creating the model.
attribute values for the model.
Create a comm and new widget model.
same options as new_model but comm is not required and additional options are available.
serialized model attributes.
Resolve a URL relative to the current notebook location.
The default implementation just returns the original url.
Modifies view options. Generally overloaded in custom widget manager implementations.
Set the widget manager state.
a Javascript object conforming to the application/vnd.jupyter.widget-state+json spec.
Reconstructs all of the widget models in the state, merges that with the current manager state, and then attempts to redisplay the widgets in the state.
Generated using TypeDoc
The class responsible for the classic IPyWidget rendering.