跳转到主要内容

JupyterLab注销按钮

项目描述

jupyterlab-logout

JupyterLab注销按钮

screenshot

安装

JupyterLab 4.x

使用版本 1.0.0 或更高。

pip install jupyterlab-logout>=1.0.0

JupyterLab 3.x

使用版本 0.5.0

pip install jupyterlab-logout==0.5.0

贡献

开发安装

注意:您将需要NodeJS来构建扩展包。

命令 jlpm 是JupyterLab预安装的yarn版本。您可以使用 yarnnpm 替代 jlpm

# Clone the repo to your local environment
# Change directory to the jupyterlab-logout directory
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm run build

您可以在不同的终端中同时监视源目录并运行JupyterLab,以便监视扩展源代码并在扩展重新构建时自动进行。

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab

在监视命令运行时,每次保存的更改都会立即本地构建并可用于运行的JupyterLab。刷新JupyterLab以在浏览器中加载更改(您可能需要等待几秒钟以重新构建扩展)。

默认情况下,命令 jlpm run build 为此扩展生成源映射,以便更容易使用浏览器开发者工具进行调试。要为JupyterLab核心扩展生成源映射,您可以运行以下命令

jupyter lab build --minimize=False

卸载

pip uninstall jupyterlab-logout

项目详情


下载文件

下载适用于您平台的项目文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分布

jupyterlab_logout-1.0.0.tar.gz (22.7 kB 查看散列)

上传时间 源代码

构建分布

jupyterlab_logout-1.0.0-py3-none-any.whl (16.0 kB 查看散列)

上传时间 Python 3

由以下支持