index.ts 652 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (c) Jupyter Development Team.
  2. // Distributed under the terms of the Modified BSD License.
  3. import {
  4. Application
  5. } from 'phosphor/lib/ui/application';
  6. import {
  7. ApplicationShell
  8. } from './shell';
  9. /**
  10. * The type for all JupyterLab plugins.
  11. */
  12. export
  13. type JupyterLabPlugin<T> = Application.IPlugin<JupyterLab, T>;
  14. /**
  15. * JupyterLab is the main application class. It is instantiated once and shared.
  16. */
  17. export
  18. class JupyterLab extends Application<ApplicationShell> {
  19. /**
  20. * Create the application shell for the JupyterLab application.
  21. */
  22. protected createShell(): ApplicationShell {
  23. return new ApplicationShell();
  24. }
  25. }