Skip to main content

为集合提供更具交互性的格式的 JupyterLab 扩展

项目描述

ipycollections-扩展

Github 操作状态

为集合提供更具交互性的格式的 JupyterLab 扩展

此扩展作为预构建扩展分发。

要求

  • JupyterLab >= 3.0

安装

要安装扩展,请执行:

pip install ipycollections

卸载

要删除扩展,请执行:

pip uninstall ipycollections

贡献

开发安装

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

jlpm命令是与 JupyterLab 一起安装的 JupyterLab 的固定版本 yarn。您可以使用 yarnnpm代替jlpm以下。

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

运行 watch 命令后,每个保存的更改都将立即在本地构建并在您正在运行的 JupyterLab 中可用。刷新 JupyterLab 以在浏览器中加载更改(您可能需要等待几秒钟才能重建扩展)。

默认情况下,该jlpm build命令会为此扩展生成源映射,以便更轻松地使用浏览器开发工具进行调试。要同时为 JupyterLab 核心扩展生成源映射,您可以运行以下命令:

jupyter lab build --minimize=False

开发卸载

pip uninstall ipycollections

在开发模式下,您还需要删除jupyter labextension develop 命令创建的符号链接。要找到它的位置,您可以运行jupyter labextension list以找出labextensions 文件夹所在的位置。然后,您可以删除该ipycollections文件夹中命名的符号链接。

打包扩展

发布

下载文件

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

源分布

ipycollections-0.2.0.tar.gz (26.9 kB 查看哈希

已上传 source

内置分布

ipycollections-0.2.0-py3-none-any.whl (31.6 kB 查看哈希

已上传 py3