How to use the @jupyterlab/application.JupyterLab function in @jupyterlab/application

To help you get started, we’ve selected a few @jupyterlab/application 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 / examples / app / index.js View on Github external
require('@jupyterlab/markdownviewer-extension'),
    require('@jupyterlab/mathjax2-extension'),
    require('@jupyterlab/notebook-extension'),
    require('@jupyterlab/rendermime-extension'),
    require('@jupyterlab/running-extension'),
    require('@jupyterlab/settingeditor-extension'),
    require('@jupyterlab/shortcuts-extension'),
    require('@jupyterlab/statusbar-extension'),
    require('@jupyterlab/tabmanager-extension'),
    require('@jupyterlab/terminal-extension'),
    require('@jupyterlab/theme-dark-extension'),
    require('@jupyterlab/theme-light-extension'),
    require('@jupyterlab/tooltip-extension'),
    require('@jupyterlab/ui-components-extension')
  ];
  var lab = new JupyterLab();
  lab.registerPluginModules(mods);
  /* eslint-disable no-console */
  console.log('Starting app');
  await lab.start();
  console.log('App started, waiting for restore');
  await lab.restored;
  console.log('Example started!');
});
github pymedphys / pymedphys / pymedphys / _app / index.js View on Github external
require('@jupyterlab/markdownviewer-extension'),
    require('@jupyterlab/mathjax2-extension'),
    require('@jupyterlab/notebook-extension'),
    require('@jupyterlab/rendermime-extension'),
    require('@jupyterlab/running-extension'),
    require('@jupyterlab/settingeditor-extension'),
    require('@jupyterlab/shortcuts-extension'),
    require('@jupyterlab/statusbar-extension'),
    require('@jupyterlab/tabmanager-extension'),
    require('@jupyterlab/terminal-extension'),
    require('@jupyterlab/theme-dark-extension'),
    require('@jupyterlab/theme-light-extension'),
    require('@jupyterlab/tooltip-extension'),
    require('@jupyterlab/ui-components-extension')
  ];
  var lab = new JupyterLab();
  lab.registerPluginModules(mods);
  /* eslint-disable no-console */
  console.log('Starting app');
  await lab.start();
  console.log('App started, waiting for restore');
  await lab.restored;
  console.log('Example started!');
});
github jupyterlab / jupyterlab / test / src / application / index.spec.ts View on Github external
it('should be the loader used by the application', () => {
      expect(lab.loader).to.be(null);
      lab = new JupyterLab({ loader });
      expect(lab.loader).to.be(loader);
    });
github jupyterlab / jupyterlab / test / src / application / index.spec.ts View on Github external
it('should be the info about the application', () => {
      expect(lab.info.version).to.be('unknown');
      expect(lab.info.gitDescription).to.be('unknown');
      lab = new JupyterLab({
        version: 'foo',
        gitDescription: 'foo'
      });
      expect(lab.info.version).to.be('foo');
      expect(lab.info.gitDescription).to.be('foo');
    });
github jupyterlab / jupyterlab / test / src / application / index.spec.ts View on Github external
it('should accept options', () => {
      lab = new JupyterLab({
        version: 'foo',
        gitDescription: 'foo',
        loader
      });
    });
github jupyterlab / jupyterlab / packages / main / src / main.ts View on Github external
function createLab(loader: ModuleLoader): JupyterLab {
  const lab = new JupyterLab({
    loader,
    gitDescription: process.env.GIT_DESCRIPTION,
    namespace: 'jupyterlab',
    version: process.env.JUPYTERLAB_VERSION
  });
  lab.registerPluginModules(mods);
  return lab;
}
github jupyterlab / jupyterlab-data-explorer / jupyterlab / examples / app / index.js View on Github external
require('@jupyterlab/launcher-extension'),
    require('@jupyterlab/mainmenu-extension'),
    require('@jupyterlab/markdownviewer-extension'),
    require('@jupyterlab/mathjax2-extension'),
    require('@jupyterlab/notebook-extension'),
    require('@jupyterlab/rendermime-extension'),
    require('@jupyterlab/running-extension'),
    require('@jupyterlab/settingeditor-extension'),
    require('@jupyterlab/shortcuts-extension'),
    require('@jupyterlab/tabmanager-extension'),
    require('@jupyterlab/terminal-extension'),
    require('@jupyterlab/theme-dark-extension'),
    require('@jupyterlab/theme-light-extension'),
    require('@jupyterlab/tooltip-extension')
  ];
  var lab = new JupyterLab({
    name: 'JupyterLab Example',
    namespace: 'lab-example',
    version: require('./package.json').version
  });
  lab.registerPluginModules(mods);
  lab.start();
});
github jupyterlab / jupyterlab / jupyterlab / src / main.ts View on Github external
function createLab(loader: ModuleLoader): JupyterLab {
  const lab = new JupyterLab({
    loader,
    gitDescription: process.env.GIT_DESCRIPTION,
    namespace: 'jupyterlab',
    version: process.env.JUPYTERLAB_VERSION
  });
  lab.registerPluginModules(mods);
  return lab;
}