重新设计的JupyterLab启动器
项目描述
jupyterlab-new-launcher
重新设计的JupyterLab启动器
内核选择对话框
需求
- JupyterLab >= 4.0.0
安装
要安装扩展,执行
pip install jupyterlab-new-launcher
卸载
要删除扩展,执行
pip uninstall jupyterlab-new-launcher
贡献
开发安装
注意:您需要NodeJS来构建扩展包。
jlpm
命令是JupyterLab附带的yarn的版本。您可以在以下内容中使用yarn
或npm
代替jlpm
。
# Clone the repo to your local environment
# Change directory to the jupyterlab_new_launcher 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_new_launcher
在开发模式下,您还需要删除由 jupyter labextension develop
命令创建的符号链接。要找到其位置,您可以运行 jupyter labextension list
来确定 labextensions
文件夹的位置。然后您可以删除该文件夹中名为 jupyterlab-new-launcher
的符号链接。
测试扩展
前端测试
此扩展使用 Jest 进行 JavaScript 代码测试。
要执行它们,请执行
jlpm
jlpm test
集成测试
此扩展使用 Playwright 进行集成测试(也称为用户级测试)。更确切地说,JupyterLab 辅助工具 Galata 用于在 JupyterLab 中测试扩展。
更多信息请参阅 ui-tests 的 README。
打包扩展
见 RELEASE
项目详情
下载文件
下载适用于您的平台的文件。如果您不确定要选择哪个,请了解更多关于 安装包 的信息。
源分布
jupyterlab_new_launcher-0.5.1.tar.gz (481.5 kB 查看散列值)
构建分布
关闭
散列值 for jupyterlab_new_launcher-0.5.1-py3-none-any.whl
算法 | 散列摘要 | |
---|---|---|
SHA256 | 1f08be174ff2fb36c8bd38d2e2d7d4268e7fa453356ed8a1a53be8267ea69007 |
|
MD5 | dc337480c84f954aff3f95b2a799e59d |
|
BLAKE2b-256 | befe9eff17e5ea0950d27ca0e5a7a179ee3cb412d64e881aed777d9eb1fd6e01 |