UNPKG

jupyterlab-emrys

Version:

A computational environment for Jupyter. Powered by Emrys

31 lines (30 loc) 860 B
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. "use strict"; var docregistry_1 = require('../docregistry'); var widget_1 = require('./widget'); /** * The list of file extensions for maps. */ var EXTENSIONS = ['.ipynb']; /** * The geojson file handler extension. */ exports.publisherHandlerExtension = { id: 'jupyter.extensions.publisherHandler', requires: [docregistry_1.DocumentRegistry], activate: activatePublisherWidget }; /** * Activate the publisher widget extension. */ function activatePublisherWidget(app, registry) { var options = { fileExtensions: EXTENSIONS, displayName: 'Ship', modelName: 'text', preferKernel: false, canStartKernel: false }; registry.addWidgetFactory(new widget_1.PublisherWidgetFactory(), options); }