How to use @jupyterlab/nbwidgets - 1 common examples

To help you get started, we’ve selected a few @jupyterlab/nbwidgets 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 hahnlee / ipytracer / js / src / labplugin.js View on Github external
// Copyright (c) Han Lee.
// Distributed under the terms of the Modified BSD License.
// https://github.com/ellisonbg/ipyleaflet/blob/master/js/src/labplugin.js

var ipytracer = require('./index');

var jupyterlab_widgets = require('@jupyterlab/nbwidgets');

module.exports = {
  id: 'jupyter.extensions.ipytracer',
  requires: [jupyterlab_widgets.INBWidgetExtension],
  activate: function(app, widgets) {
      widgets.registerWidget({
          name: 'ipytracer',
          version: ipytracer.version,
          exports: ipytracer
      });
  },
  autoStart: true
};

@jupyterlab/nbwidgets

The JupyterLab extension providing Jupyter widgets.

BSD-3-Clause
Latest version published 5 years ago

Package Health Score

67 / 100
Full package analysis

Popular @jupyterlab/nbwidgets functions