// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { PageConfig } from '@jupyterlab/coreutils'; // eslint-disable-next-line __webpack_public_path__ = PageConfig.getOption('fullStaticUrl') + '/'; // This must be after the public path is set so CSS assets can load properly. import('./build/style.js'); // These imports should match the list of extensions in package.json (listed // separately there so the webpack config Build.ensureAssets step can copy // extension assets to the build directory). These import statements assume // the JupyterLab plugins are the default export from each package. const extensions = [ import('@jupyterlab/application-extension'), import('@jupyterlab/apputils-extension'), import('@jupyterlab/codemirror-extension'), import('@jupyterlab/completer-extension'), import('@jupyterlab/console-extension'), import('@jupyterlab/csvviewer-extension'), import('@jupyterlab/docmanager-extension'), import('@jupyterlab/filebrowser-extension'), import('@jupyterlab/fileeditor-extension'), import('@jupyterlab/help-extension'), import('@jupyterlab/imageviewer-extension'), import('@jupyterlab/inspector-extension'), import('@jupyterlab/launcher-extension'), import('@jupyterlab/mainmenu-extension'), import('@jupyterlab/markdownviewer-extension'), import('@jupyterlab/mathjax2-extension'), import('@jupyterlab/notebook-extension'), import('@jupyterlab/rendermime-extension'), import('@jupyterlab/running-extension'), import('@jupyterlab/settingeditor-extension'), import('@jupyterlab/shortcuts-extension'), import('@jupyterlab/statusbar-extension'), import('@jupyterlab/terminal-extension'), import('@jupyterlab/theme-dark-extension'), import('@jupyterlab/theme-light-extension'), import('@jupyterlab/tooltip-extension'), import('@jupyterlab/translation-extension'), import('@jupyterlab/ui-components-extension') ]; window.addEventListener('load', async function () { const JupyterLab = import('@jupyterlab/application').JupyterLab; const lab = new JupyterLab(); lab.registerPluginModules(extensions); /* 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!'); });