跳转到主要内容

NGL工具,适用于JupyterLab 3.x。

项目描述

jupyterlab_ngl

Github Actions StatusBinder

NGL工具,适用于JupyterLab 3.x。

需求

  • JupyterLab >= 3.0

安装

pip install jupyterlab_ngl

贡献

开发安装

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

jlpm命令是JupyterLab随附的yarn版本,它是与JupyterLab一起安装的。您可以使用下面的yarnnpm代替jlpm

# Clone the repo to your local environment
# Change directory to the jupyterlab_ngl 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_ngl

项目详情


下载文件

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

源代码分发

jupyterlab_ngl-0.1.5.tar.gz (1.7 MB 查看哈希值)

上传时间 源代码

构建分发

jupyterlab_ngl-0.1.5-py3-none-any.whl (3.8 MB 查看哈希值)

上传时间 Python 3

由以下支持