How to use the @jupyter-widgets/jupyterlab-manager/lib/output.OutputModel.serializers function in @jupyter-widgets/jupyterlab-manager

To help you get started, we’ve selected a few @jupyter-widgets/jupyterlab-manager examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyter-widgets / jupyterlab-sidecar / src / widget.ts View on Github external
_model_module: SidecarModel.model_module,
      _model_module_version: SidecarModel.model_module_version,
      _view_name: SidecarModel.view_name,
      _view_module: SidecarModel.view_module,
      _view_module_version: SidecarModel.view_module_version,
      title: 'Sidecar'
    };
  }

  initialize(attributes: any, options: any) {
    super.initialize(attributes, options);
    this.widget_manager.display_model(undefined, this, {});
  }

  static serializers : any = {
      ...OutputModel.serializers,
      // Add any extra serializers here
    }

  static model_name = 'SidecarModel';
  static model_module = '@jupyter-widgets/jupyterlab-sidecar';
  static model_module_version = EXTENSION_SPEC_VERSION;
  static view_name = 'SidecarView';  // Set to null if no view
  static view_module = '@jupyter-widgets/jupyterlab-sidecar';   // Set to null if no view
  static view_module_version = EXTENSION_SPEC_VERSION;
}