__init__.py 924 B

12345678910111213141516171819202122232425262728293031
  1. # Copyright (c) Jupyter Development Team.
  2. # Distributed under the terms of the Modified BSD License.
  3. from typing import Any
  4. from ._version import __version__
  5. from .app import LabServerApp
  6. from .handlers import LabConfig, LabHandler, add_handlers
  7. from .licenses_app import LicensesApp
  8. from .spec import get_openapi_spec, get_openapi_spec_dict # noqa: F401
  9. from .translation_utils import translator
  10. from .workspaces_app import WorkspaceExportApp, WorkspaceImportApp, WorkspaceListApp
  11. from .workspaces_handler import WORKSPACE_EXTENSION, slugify
  12. __all__ = [
  13. "__version__",
  14. "add_handlers",
  15. "LabConfig",
  16. "LabHandler",
  17. "LabServerApp",
  18. "LicensesApp",
  19. "slugify",
  20. "translator",
  21. "WORKSPACE_EXTENSION",
  22. "WorkspaceExportApp",
  23. "WorkspaceImportApp",
  24. "WorkspaceListApp",
  25. ]
  26. def _jupyter_server_extension_points() -> Any:
  27. return [{"module": "jupyterlab_server", "app": LabServerApp}]