UNPKG

jupyterlab-emrys

Version:

A computational environment for Jupyter. Powered by Emrys

31 lines (30 loc) 866 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.apiShipperHandlerExtension = { id: 'jupyter.extensions.apiShipperHandler', requires: [docregistry_1.DocumentRegistry], activate: activateApiShipperWidget }; /** * Activate the apibuilder widget extension. */ function activateApiShipperWidget(app, registry) { var options = { fileExtensions: EXTENSIONS, displayName: 'Ship', modelName: 'text', preferKernel: false, canStartKernel: false }; registry.addWidgetFactory(new widget_1.ApiShipperWidgetFactory(), options); }