How to use the @jupyter-widgets/base.IJupyterWidgetRegistry function in @jupyter-widgets/base

To help you get started, we’ve selected a few @jupyter-widgets/base 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 exa-analytics / exatomic / js / src / jupyterlab-plugin.js View on Github external
// Copright (c) 2015-2018, Exa Analytics Development Team
// Distributed under the terms of the Apache License 2.0

var exatomic = require("./index");

var base = require("@jupyter-widgets/base");

module.exports = {
    id: "exatomic",
    requires: [base.IJupyterWidgetRegistry],
    activate: function(app, widgets) {
        widgets.registerWidget({
            name: "exatomic",
            version: exatomic.version,
            exports: exatomic
        });
    },
    autoStart: true
};
github vispy / vispy / js / lib / labplugin.js View on Github external
var vispy = require('./index');
var base = require('@jupyter-widgets/base');

module.exports = {
  id: 'vispy',
  requires: [base.IJupyterWidgetRegistry],
  activate: function(app, widgets) {
      widgets.registerWidget({
          name: 'vispy',
          version: vispy.version,
          exports: vispy
      });
  },
  autoStart: true
};
github plotly / plotly.py / packages / javascript / jupyterlab-plotly / src / jupyterlab-plugin.js View on Github external
var plotly = require('./index');
var base = require('@jupyter-widgets/base');

/**
 * The widget manager provider.
 */
module.exports = {
  id: 'jupyterlab-plotly',
  requires: [base.IJupyterWidgetRegistry],
  activate: function(app, widgets) {
      widgets.registerWidget({
          name: 'plotlywidget',
          version: plotly.version,
          exports: plotly
      });
    },
  autoStart: true
};
github higlass / higlass-python / js / lib / labplugin.js View on Github external
var jupyter_higlass = require('./index');
var base = require('@jupyter-widgets/base');

module.exports = {
  id: 'jupyter.extensions.jupyter-higlass',
  requires: [base.IJupyterWidgetRegistry],
  activate: function(app, widgets) {
      widgets.registerWidget({
          name: 'jupyter-higlass',
          version: jupyter_higlass.version,
          exports: jupyter_higlass
      });
  },
  autoStart: true
};
github bloomberg / bqplot / js / src / jupyterlab-plugin.js View on Github external
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import * as bqplot from './index';
require("../css/bqplot.css");

import * as base from '@jupyter-widgets/base';

/**
 * The widget manager provider.
 */
module.exports = {
  id: 'bqplot',
  requires: [base.IJupyterWidgetRegistry],
  activate: function(app, widgets) {
      widgets.registerWidget({
          name: 'bqplot',
          version: bqplot.version,
          exports: bqplot
      });
    },
  autoStart: true
};
github mariobuikhuizen / ipyvuetify / js / src / labplugin.js View on Github external
const base = require('@jupyter-widgets/base');
const jupyterVuetify = require('./index');

module.exports = {
    id: 'jupyter-vuetify',
    requires: [base.IJupyterWidgetRegistry],
    activate(app, widgets) {
        widgets.registerWidget({
            name: 'jupyter-vuetify',
            version: jupyterVuetify.version,
            exports: jupyterVuetify,
        });
    },
    autoStart: true,
};
github matplotlib / jupyter-matplotlib / js / src / lab_extension.js View on Github external
var jupyter_matplotlib = require('./index');

var base = require('@jupyter-widgets/base');

module.exports = {
    id: 'matplotlib-jupyter:main',
    requires: [base.IJupyterWidgetRegistry],
    activate: function(app, widgets) {
        widgets.registerWidget({
            name: 'jupyter-matplotlib',
            version: jupyter_matplotlib.version,
            exports: jupyter_matplotlib
        });
    },
    autoStart: true
};
github quantopian / qgrid / js / src / jupyterlab-plugin.js View on Github external
var qgrid = require('./index');

var base = require('@jupyter-widgets/base');

/**
 * The widget manager provider.
 */
module.exports = {
  id: 'qgrid',
  requires: [base.IJupyterWidgetRegistry],
  activate: function(app, widgets) {
      widgets.registerWidget({
          name: 'qgrid',
          version: qgrid.version,
          exports: qgrid
      });
    },
  autoStart: true
};
github jupyter-widgets / ipywidgets / packages / jupyterlab-manager / src / plugin.ts View on Github external
return new DisposableDelegate(() => {
    if (rendermime) {
      rendermime.removeMimeType(WIDGET_VIEW_MIMETYPE);
    }
    wManager.dispose();
  });
}

/**
 * The widget manager provider.
 */
const plugin: JupyterFrontEndPlugin = {
  id: '@jupyter-widgets/jupyterlab-manager:plugin',
  requires: [INotebookTracker, IRenderMimeRegistry, ISettingRegistry],
  optional: [IMainMenu],
  provides: base.IJupyterWidgetRegistry,
  activate: activateWidgetExtension,
  autoStart: true
};

export default plugin;


function updateSettings(settings: ISettingRegistry.ISettings) {
  SETTINGS.saveState = settings.get('saveState').composite as boolean;
}

/**
 * Activate the widget extension.
 */
function activateWidgetExtension(app: JupyterFrontEnd, tracker: INotebookTracker, rendermime: IRenderMimeRegistry, settingRegistry: ISettingRegistry, menu: IMainMenu | null): base.IJupyterWidgetRegistry {
github maartenbreddels / ipywebrtc / js / src / labplugin.js View on Github external
const jupyter_webrtc = require('./index');
const base = require('@jupyter-widgets/base');

module.exports = {
  id: 'jupyter-webrtc',
  requires: [base.IJupyterWidgetRegistry],
  activate: function(app, widgets) {
      widgets.registerWidget({
          name: 'jupyter-webrtc',
          version: jupyter_webrtc.version,
          exports: jupyter_webrtc
      });
  },
  autoStart: true
};