一个简单的扩展,用于在当前文件浏览器位置打开JupyterLab终端
项目描述
jupyterlab_filebrowser_terminal
一个简单的扩展,用于在当前文件浏览器位置打开JupyterLab终端
需求
- JupyterLab >= 3.0
安装
要安装扩展,请执行
pip install jupyterlab_filebrowser_terminal
卸载
要删除扩展,请执行
pip uninstall jupyterlab_filebrowser_terminal
贡献
开发安装
注意:您需要NodeJS来构建扩展包。
jlpm
命令是JupyterLab的yarn版本,与JupyterLab一起安装。您可以使用下面的yarn
或npm
代替jlpm
。
# Clone the repo to your local environment
# Change directory to the jupyterlab_filebrowser_terminal 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_filebrowser_terminal
在开发模式下,您还需要删除由jupyter labextension develop
命令创建的符号链接。要找到其位置,您可以运行jupyter labextension list
以确定labextensions
文件夹的位置。然后您可以在该文件夹中删除名为jupyterlab-filebrowser-terminal
的符号链接。
jupyterlab-filebrowser-terminal
项目详情
关闭
jupyterlab_filebrowser_terminal-0.1.0-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 580d6d37199c1be683b9364d2c83b2eff5a8e8790e589e0b10637e44809ab4d0 |
|
MD5 | b4bf31f0d050d0eaeda16384b63f53ad |
|
BLAKE2b-256 | 0dc32b85ee22b7300e62280813c2d63a4867db7dd516dbe4ed0f8b317a31f9d0 |