Private
_contextProtected
_kernelProtected
_restoredProtected
_restoredPrivate
_settingsReadonly
comm_The comm target name to register
A signal emitted for unhandled iopub kernel messages.
A signal emitted when state is restored to the widget manager.
This indicates that previously-unavailable widget models might be available now.
Whether the state has been restored yet or not.
Protected
_handleProtected
_handleProtected
_loadProtected
_loadPrivate
_saveCreates 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.
Optional
options: anyOptional
options: anyProtected
filterGet 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.
Optional
options: IStateOptionsThe options for what state to return.
Promise for a state dictionary
Synchronously get the state of the live widgets in the widget manager.
This includes all of the live widget models, and follows the format given in the @jupyter-widgets/schema package.
The options for what state to return.
A state dictionary
Returns true if the given model is registered, otherwise false.
This is a synchronous way to check if a model is registered.
Protected
loadProtected
loadProtected
loadCreate and return a promise for a new widget model
the options for creating the model.
Optional
serialized_state: anyattribute values for the model.
widget_manager.new_model({
model_name: 'IntSlider',
model_module: '@jupyter-widgets/controls',
model_module_version: '1.0.0',
model_id: 'u-u-i-d'
}).then((model) => { console.log('Create success!', model); },
(err) => {console.error(err)});
Create a comm and new widget model.
same options as new_model but comm is not required and additional options are available.
Optional
serialized_state: JSONObjectserialized model attributes.
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.
A widget manager that returns phosphor widgets.