JupyterLab的VPython扩展
项目描述
jupyterlab_vpython
要求
- JupyterLab >= 4.0.0
安装
要安装扩展,请执行以下命令
pip install jupyterlab_vpython
卸载
要删除扩展,请执行以下命令
pip uninstall jupyterlab_vpython
贡献
开发安装
注意:您需要NodeJS来构建扩展包。
jlpm
命令是JupyterLab附带的 yarn 版本,与JupyterLab一起安装。您可以使用 yarn
或 npm
替代下面的 jlpm
。
# Clone the repo to your local environment
# Change directory to the jupyterlab_vpython 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 build
您可以在不同的终端中同时监视源目录并运行JupyterLab,以监视扩展源代码的变化并自动重新构建扩展。
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab
在监视命令运行时,每次保存的更改将立即本地构建并可在您的运行中JupyterLab中可用。刷新JupyterLab以在浏览器中加载更改(您可能需要等待几秒钟以重新构建扩展)。
默认情况下,jlpm build
命令为该扩展生成源映射,以便使用浏览器开发工具进行调试。要为JupyterLab核心扩展也生成源映射,可以运行以下命令
jupyter lab build --minimize=False
开发卸载
pip uninstall jupyterlab_vpython
在开发模式下,您还需要删除由 jupyter labextension develop
命令创建的符号链接。要找到其位置,您可以运行 jupyter labextension list
以确定 labextensions
文件夹的位置。然后您可以在该文件夹中删除名为 jupyterlab_vpython
的符号链接。
打包扩展
项目详情
下载文件
下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。
源分布
jupyterlab_vpython-3.1.8.tar.gz (7.8 MB 查看哈希)
构建分布
关闭
jupyterlab_vpython-3.1.8.tar.gz 的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | fd0f1dd08681c22445bc454f19cc64b8890ad598401f97799cf3655f32042825 |
|
MD5 | f24dad75e91133614066188279e8e70e |
|
BLAKE2b-256 | 47217390476ae65567c646f619c3eb942eedfc63196972a90a64339ac8044506 |
关闭
jupyterlab_vpython-3.1.8-py3-none-any.whl 的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 0151267f1bc62fbea22af6d25932007e2a7b7d24082b888ef5f0e01b0bd76b18 |
|
MD5 | f60b787fefdf1cc32e2652d2197ef848 |
|
BLAKE2b-256 | 290817aceec37ff9afcd514a078b1c8dcd0688d5128247f5a27bfa7bf12bc1ef |