跳转到主要内容

类似VSCode的文件浏览器

项目描述

jupyterlab-unfold

Extension status Github Actions Status Binder PyPI Conda (channel only)

IDE-like文件浏览器

jupyterlab-unfold

要求

  • JupyterLab >= 4.0.0,<5.0

安装

要安装扩展,请执行

pip install jupyterlab-unfold

卸载

要删除扩展,请执行

pip uninstall jupyterlab-unfold

贡献

开发安装

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

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

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

在开发模式下,您还需要删除由 jupyter labextension develop 命令创建的符号链接。要找到其位置,可以运行 jupyter labextension list 以确定 labextensions 文件夹的位置。然后您可以从该文件夹中删除名为 jupyterlab-unfold 的符号链接。

致谢

此扩展受到了 https://github.com/youngthejames/jupyterlab_filetree 的启发,但代码重用了 JupyterLab 的核心文件浏览器并将其作为默认选项。

项目详情


下载文件

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

源分布

jupyterlab_unfold-0.3.2.tar.gz (305.4 kB 查看哈希值)

上传时间

构建分布

jupyterlab_unfold-0.3.2-py3-none-any.whl (21.8 kB 查看哈希值)

上传时间 Python 3

支持者:

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面