jupyterlab API reference
71 public APIs from jupyterlab (jupyterlab/jupyterlab) — 16 classes, 36 functions, 19 methods. Signatures extracted by static analysis of the actual source.
Repository: jupyterlab/jupyterlab
| Kind | Count |
|---|---|
| Classes | 16 |
| Functions | 36 |
| Methods | 19 |
API list
func
clean.resolve_pattern(pat:str) -> list[str]handle a leading `#` or `@` in a pattern
func
galata.update_snapshots.sha1(path:Path) -> strCalculate hashes of all png files in the test/directory
class
jupyterlab.browser_check.LogErrorHandlerA handler that exits with 1 on a logged error.
func
jupyterlab.browser_check.run_async_process(cmd:Sequence[str], **kwargs:Any) -> tuple[bytes, bytes]Run an asynchronous command
func
jupyterlab.browser_check.run_browser(url:str)Run the browser test and return an exit code.
func
jupyterlab.browser_check.run_browser_sync(url:str) -> intRun the browser test and return an exit code.
func
jupyterlab.browser_check.run_test_async(app:LabApp, func:BrowserTest)Run a test against the application.
class
jupyterlab.commands.AppOptionsOptions object for build system
func
jupyterlab.commands.build_check(app_options:AppOptionsLike=None) -> list[str]Determine whether JupyterLab should be built.
func
jupyterlab.commands.check_extension(extension:str, installed:bool=False, app_options:AppOptionsLike=None) -> boolCheck if a JupyterLab extension is enabled or disabled.
func
jupyterlab.commands.clean(app_options:AppOptionsLike=None) -> NoneClean the JupyterLab application directory.
func
jupyterlab.commands.disable_extension(extension:str, app_options:AppOptionsLike=None, level:str='sys_prefix') -> boolDisable a JupyterLab extension/plugin.
func
jupyterlab.commands.enable_extension(extension:str, app_options:AppOptionsLike=None, level:str='sys_prefix') -> boolEnable a JupyterLab extension/plugin.
func
jupyterlab.commands.ensure_app(app_dir:str) -> list[str] | NoneEnsure that an application directory is available.
func
jupyterlab.commands.ensure_core(logger:logging.Logger | None=None) -> NoneEnsure that the core assets are available.
func
jupyterlab.commands.ensure_dev(logger:logging.Logger | None=None) -> NoneEnsure that the dev assets are available.
func
jupyterlab.commands.ensure_node_modules(cwd:str, logger:logging.Logger | None=None) -> boolEnsure that node_modules is up to date.
func
jupyterlab.commands.get_app_dir() -> strGet the configured JupyterLab app directory.
func
jupyterlab.commands.get_app_info(app_options:AppOptionsLike=None) -> dict[str, Any]Get a dictionary of information about the app.
func
jupyterlab.commands.get_app_version(app_options:AppOptionsLike=None) -> strGet the application version.
func
jupyterlab.commands.get_user_settings_dir() -> strGet the configured JupyterLab user settings directory.
func
jupyterlab.commands.get_workspaces_dir() -> strGet the configured JupyterLab workspaces directory.
func
jupyterlab.commands.install_extension(extension:str, app_options:AppOptionsLike=None, pin:str | None=None) -> boolInstall an extension package into JupyterLab.
func
jupyterlab.commands.link_package(path:str | os.PathLike[str], app_options:AppOptionsLike=None) -> boolLink a package against the JupyterLab build.
func
jupyterlab.commands.list_extensions(app_options:AppOptionsLike=None) -> NoneList the extensions.
func
jupyterlab.commands.lock_extension(extension:str, app_options:AppOptionsLike=None, level:str='sys_prefix') -> boolLock a JupyterLab extension/plugin.
func
jupyterlab.commands.pjoin(*args:str | os.PathLike[str]) -> strJoin paths to create a real path.
func
jupyterlab.commands.read_package(target:str | os.PathLike[str]) -> dict[str, Any]Read the package data in a given target tarball.
func
jupyterlab.commands.uninstall_extension(name:str | None=None, app_options:AppOptionsLike=None, all_:bool=False) -> boolUninstall an extension by name or path.
func
jupyterlab.commands.unlink_package(package:str | os.PathLike[str], app_options:AppOptionsLike=None) -> boolUnlink a package from JupyterLab by path or name.
func
jupyterlab.commands.unlock_extension(extension:str, app_options:AppOptionsLike=None, level:str='sys_prefix') -> boolUnlock a JupyterLab extension/plugin.
func
jupyterlab.commands.update_extension(name:str | None=None, all_:bool=False, app_dir:str | None=None, app_options:AppOptionsLike=None) -> boolUpdate an extension by name, or all extensions.
func
jupyterlab.commands.watch(app_options:AppOptionsLike=None) -> list[WatchHelper]Watch the application.
func
jupyterlab.commands.watch_dev(logger:logging.Logger | None=None) -> list[WatchHelper]Run watch mode in a given directory.
func
jupyterlab.commands.watch_packages(logger:logging.Logger | None=None) -> list[WatchHelper]Run watch mode for the source packages.
class
jupyterlab.coreconfig.CoreConfigAn object representing a core config.
method
jupyterlab.coreconfig.CoreConfig.add(name:str, semver:str, extension:bool=False, mime_extension:bool=False)Remove an extension/singleton.
method
jupyterlab.coreconfig.CoreConfig.clear_packages(lab_only:bool=True)Clear the packages/extensions.
method
jupyterlab.coreconfig.CoreConfig.extensions() -> dict[str, str]A dict mapping all extension names to their semver
method
jupyterlab.coreconfig.CoreConfig.remove(name:str)Remove a package/extension.
func
jupyterlab.coreconfig.pjoin(*args:str | os.PathLike[str]) -> strJoin paths to create a real path.
func
jupyterlab.extensions.get_pypi_manager(app_options:dict | None=None, ext_options:dict | None=None, parent:Configurable | None=None) -> ExtensionManagerPyPi Extension Manager factory
func
jupyterlab.extensions.get_readonly_manager(app_options:dict | None=None, ext_options:dict | None=None, parent:Configurable | None=None) -> ExtensionManagerRead-Only Extension Manager factory
class
jupyterlab.extensions.manager.ExtensionManagerBase abstract extension manager.
method
jupyterlab.extensions.manager.ExtensionManager.get_normalized_name(extension:ExtensionPackage) -> strNormalize extension name.
method
jupyterlab.extensions.manager.ExtensionManager.get_semver_version(version:str) -> strConvert a Python version to Semver version.
method
jupyterlab.extensions.manager.ExtensionManager.install(extension:str, version:str | None=None) -> ActionResultInstall the required extension.
method
jupyterlab.extensions.manager.ExtensionManager.list_packages(query:str, page:int, per_page:int) -> tuple[dict[str, ExtensionPackage], int | None]List the available extensions.
method
jupyterlab.extensions.manager.ExtensionManager.metadata() -> ExtensionManagerMetadataExtension manager metadata.
method
jupyterlab.extensions.manager.ExtensionManager.refresh(query:str | None, page:int, per_page:int) -> NoneRefresh the list of extensions.
method
jupyterlab.extensions.manager.ExtensionManager.uninstall(extension:str) -> ActionResultUninstall the required extension.
class
jupyterlab.extensions.manager.ExtensionManagerMetadataExtension manager metadata.
class
jupyterlab.extensions.manager.ExtensionManagerOptionsExtension manager options.
class
jupyterlab.extensions.manager.ExtensionPackageExtension package entry.
method
jupyterlab.extensions.manager.PluginManager.disable(plugins:str | list[str]) -> ActionResultDisable a set of plugins (or an extension).
method
jupyterlab.extensions.manager.PluginManager.enable(plugins:str | list[str]) -> ActionResultEnable a set of plugins (or an extension).
class
jupyterlab.extensions.manager.PluginManagerOptionsPlugin manager options.
class
jupyterlab.extensions.readonly.ReadOnlyExtensionManagerExtension manager without installation capabilities.
method
jupyterlab.extensions.readonly.ReadOnlyExtensionManager.install(extension:str, version:str | None=None) -> ActionResultInstall the required extension.
method
jupyterlab.extensions.readonly.ReadOnlyExtensionManager.list_packages(query:str, page:int, per_page:int) -> tuple[dict[str, ExtensionPackage], int | None]List the available extensions.
method
jupyterlab.extensions.readonly.ReadOnlyExtensionManager.metadata() -> ExtensionManagerMetadataExtension manager metadata.
method
jupyterlab.extensions.readonly.ReadOnlyExtensionManager.uninstall(extension:str) -> ActionResultUninstall the required extension.
class
jupyterlab.handlers.announcements.CheckForUpdateDefault class to check for update.
class
jupyterlab.handlers.announcements.CheckForUpdateABCAbstract class to check for update.
class
jupyterlab.handlers.announcements.CheckForUpdateHandlerCheck for Updates API handler.
method
jupyterlab.handlers.announcements.CheckForUpdateHandler.get()Check for updates.
class
jupyterlab.handlers.announcements.NeverCheckForUpdateCheck update version that does nothing.
class
jupyterlab.handlers.announcements.NewsHandlerNews API handler.
method
jupyterlab.handlers.announcements.NewsHandler.get() -> NoneGet the news.
class
jupyterlab.labextensions.LabExtensionAppBase jupyter labextension command entry point
class
jupyterlab.utils.deprecatedDecorator to mark deprecated functions with warning.
About this data
These signatures were extracted from the public source of jupyterlab/jupyterlab
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.