jupyterlab_server API reference
69 public APIs from jupyterlab_server (jupyterlab/jupyterlab_server) — 18 classes, 15 functions, 36 methods. Signatures extracted by static analysis of the actual source.
Repository: jupyterlab/jupyterlab_server
| Kind | Count |
|---|---|
| Classes | 18 |
| Functions | 15 |
| Methods | 36 |
API list
class
jupyterlab_server.app.LabServerAppA Lab Server Application that runs out-of-the-box
method
jupyterlab_server.app.LabServerApp.initialize_handlers() -> NoneInitialize handlers.
method
jupyterlab_server.app.LabServerApp.initialize_templates() -> NoneInitialize templates.
class
jupyterlab_server.config.LabConfigThe lab application configuration object.
func
jupyterlab_server.config.get_allowed_levels() -> list[str]Returns the levels where configs can be stored.
func
jupyterlab_server.config.get_federated_extensions(labextensions_path:list[str]) -> dict[str, Any]Get the metadata about federated extensions
func
jupyterlab_server.config.get_package_url(data:dict[str, Any]) -> strGet the url from the extension data
func
jupyterlab_server.config.load_config(path:str) -> AnyLoad either a json5 or a json config file.
func
jupyterlab_server.config.write_page_config(page_config:dict[str, Any], level:str='all') -> NoneWrite page config to disk
class
jupyterlab_server.handlers.LabHandlerRender the JupyterLab View.
method
jupyterlab_server.handlers.LabHandler.get(mode:str | None=None, workspace:str | None=None, tree:str | None=None) -> NoneGet the JupyterLab html page.
method
jupyterlab_server.handlers.LabHandler.get_page_config() -> dict[str, Any]Construct the page config object
class
jupyterlab_server.handlers.NotFoundHandlerA handler for page not found.
method
jupyterlab_server.handlers.NotFoundHandler.get_page_config() -> dict[str, Any]Get the page config.
func
jupyterlab_server.handlers.add_handlers(handlers:list[Any], extension_app:LabServerApp) -> NoneAdd the appropriate handlers to the web app.
func
jupyterlab_server.handlers.is_url(url:str) -> boolTest whether a string is a full url (e.g.
class
jupyterlab_server.licenses_app.LicensesAppA license management app.
method
jupyterlab_server.licenses_app.LicensesApp.init_licenses_manager() -> NoneInitialize the license manager.
method
jupyterlab_server.licenses_app.LicensesApp.initialize(*args:Any, **kwargs:Any) -> NoneInitialize the app.
method
jupyterlab_server.licenses_app.LicensesApp.start() -> NoneStart the app.
class
jupyterlab_server.listings_handler.ListingsHandlerAn handler that returns the listings specs.
method
jupyterlab_server.listings_handler.ListingsHandler.get(path:str) -> NoneGet the listings for the extension manager.
func
jupyterlab_server.listings_handler.fetch_listings(logger:Logger | None) -> NoneFetch the listings for the extension manager.
class
jupyterlab_server.process.ProcessA wrapper for a child process.
method
jupyterlab_server.process.Process.get_log() -> LoggerGet our logger.
method
jupyterlab_server.process.Process.terminate() -> intTerminate the process and return the exit code.
method
jupyterlab_server.process.Process.wait() -> intWait for the process to finish.
method
jupyterlab_server.process.Process.wait_async() -> AnyAsynchronously wait for the process to finish.
class
jupyterlab_server.process.WatchHelperA process helper for a watch process.
method
jupyterlab_server.process.WatchHelper.terminate() -> intTerminate the process.
func
jupyterlab_server.process.list2cmdline(cmd_list:list[str]) -> strShim for list2cmdline on posix.
func
jupyterlab_server.process.which(command:str, env:dict[str, str] | None=None) -> strGet the full path to a command.
class
jupyterlab_server.settings_handler.SettingsHandlerA settings API handler.
method
jupyterlab_server.settings_handler.SettingsHandler.initialize(name:str, app_settings_dir:str, schemas_dir:str, settings_dir:str, labextensions_path:list[str], overrides:dict[str, Any] | None=None, **kwargs:Any) -> NoneInitialize the handler.
method
jupyterlab_server.settings_handler.SettingsHandler.put(schema_name:str) -> NoneUpdate a setting
class
jupyterlab_server.settings_utils.SchemaHandlerBase handler for handler requiring access to settings.
method
jupyterlab_server.settings_utils.SchemaHandler.initialize(app_settings_dir:str, schemas_dir:str, settings_dir:str, labextensions_path:list[str] | None, overrides:dict[str, Any] | None=None, **kwargs:Any) -> NoneInitialize the handler.
func
jupyterlab_server.settings_utils.get_settings(app_settings_dir:str, schemas_dir:str, settings_dir:str, schema_name:str='', overrides:dict[str, Any] | None=None, labextensions_path:list[str] | None=None, translator:Any=None, ids_only:bool=False) -> tuple[dict[str, Any], list[Any]]Get settings.
func
jupyterlab_server.spec.get_openapi_spec() -> SpecGet the OpenAPI spec object.
func
jupyterlab_server.spec.get_openapi_spec_dict() -> dict[str, typing.Any]Get the OpenAPI spec as a dictionary.
class
jupyterlab_server.themes_handler.ThemesHandlerA file handler that mangles local urls in CSS files.
func
jupyterlab_server.themes_handler.ThemesHandler.replacer(m:Any) -> AnyReplace the matched relative url with the mangled url.
func
jupyterlab_server.translation_utils.is_valid_locale(locale_:str) -> boolCheck if a `locale_` value is valid.
class
jupyterlab_server.translation_utils.translatorTranslations manager.
method
jupyterlab_server.translation_utils.translator.load(domain:str) -> TranslationBundleLoad translation domain.
method
jupyterlab_server.translation_utils.translator.normalize_domain(domain:str) -> strNormalize a domain name.
method
jupyterlab_server.translation_utils.translator.set_locale(locale_:str) -> NoneSet locale for the translation bundles based on the settings.
method
jupyterlab_server.translation_utils.translator.translate_schema(schema:dict) -> dictTranslate a schema.
class
jupyterlab_server.translations_handler.TranslationsHandlerAn API handler for translations.
method
jupyterlab_server.translations_handler.TranslationsHandler.get(locale:str | None=None) -> NoneGet installed language packs.
class
jupyterlab_server.workspaces_app.WorkspaceExportAppA workspace export app.
method
jupyterlab_server.workspaces_app.WorkspaceExportApp.initialize(*args:Any, **kwargs:Any) -> NoneInitialize the app.
method
jupyterlab_server.workspaces_app.WorkspaceExportApp.start() -> NoneStart the app.
class
jupyterlab_server.workspaces_app.WorkspaceImportAppA workspace import app.
method
jupyterlab_server.workspaces_app.WorkspaceImportApp.initialize(*args:Any, **kwargs:Any) -> NoneInitialize the app.
method
jupyterlab_server.workspaces_app.WorkspaceImportApp.start() -> NoneStart the app.
class
jupyterlab_server.workspaces_app.WorkspaceListAppAn app to list workspaces.
method
jupyterlab_server.workspaces_app.WorkspaceListApp.initialize(*args:Any, **kwargs:Any) -> NoneInitialize the app.
method
jupyterlab_server.workspaces_app.WorkspaceListApp.start() -> NoneStart the app.
class
jupyterlab_server.workspaces_handler.WorkspacesHandlerA workspaces API handler.
method
jupyterlab_server.workspaces_handler.WorkspacesHandler.delete(space_name:str) -> NoneRemove a workspace
method
jupyterlab_server.workspaces_handler.WorkspacesHandler.get(space_name:str='') -> AnyGet workspace(s) data
method
jupyterlab_server.workspaces_handler.WorkspacesHandler.initialize(name:str, manager:WorkspacesManager, **kwargs:Any) -> NoneInitialize the handler.
method
jupyterlab_server.workspaces_handler.WorkspacesHandler.put(space_name:str='') -> NoneUpdate workspace data
class
jupyterlab_server.workspaces_handler.WorkspacesManagerA manager for workspaces.
method
jupyterlab_server.workspaces_handler.WorkspacesManager.delete(space_name:str) -> NoneRemove a workspace ``space_name``.
method
jupyterlab_server.workspaces_handler.WorkspacesManager.list_workspaces() -> listList all available workspaces.
method
jupyterlab_server.workspaces_handler.WorkspacesManager.load(space_name:str) -> dictLoad the workspace ``space_name``.
method
jupyterlab_server.workspaces_handler.WorkspacesManager.save(space_name:str, raw:str) -> PathSave the ``raw`` data as workspace ``space_name``.
About this data
These signatures were extracted from the public source of jupyterlab/jupyterlab_server
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.