Optional options: { Optional loader?: ((moduleName, moduleVersion) => Promise<any>)Private _commPrivate _onPrivate _registryReadonly comm_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.
Private _getPrivate _handleProtected _loadProtected _loadCreates 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
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.
The class is responsible for the classic IPyWidgets rendering.