How to use the @jupyterlab/application-extension.map function in @jupyterlab/application-extension

To help you get started, we’ve selected a few @jupyterlab/application-extension 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 jupyterlab / jupyterlab_app / src / browser / extensions / electron-extension / index.ts View on Github external
app.commands.addCommand(command, {
    label: 'Toggle Single-Document Mode',
    execute: () => {
      const args = app.shell.mode === 'multiple-document' ?
        { mode: 'single-document' } : { mode: 'multiple-document' };
      return app.commands.execute(CommandIDs.setMode, args);
    }
  });
  palette.addItem({ command, category });
}


/**
 * Override default jupyterlab plugins
 */
let nPlugins = plugins.map((p: JupyterLabPlugin) => {
    if (p.id === 'jupyter.extensions.main') {
      return mainPlugin;
    }
    return p;
});
export default nPlugins;

@jupyterlab/application-extension

JupyterLab - Application Extension

BSD-3-Clause
Latest version published 1 month ago

Package Health Score

95 / 100
Full package analysis

Popular @jupyterlab/application-extension functions

Similar packages