Skip to main content

JupyterLite 的 wren 内核,由 Xeus 提供支持

项目描述

jupyterlite-xeus-wren-内核

Github 操作状态

在浏览器中运行的 JupyterLite 的 wren 内核,由 Xeus 提供支持。

jupyterlite-xeus-wren

要求

  • JupyterLite >= 0.1.0a14

安装

要安装扩展,请执行:

pip install jupyterlite_xeus_wren

然后构建您的 JupyterLite 站点:

jupyter lite build

卸载

要删除扩展,请执行:

pip uninstall jupyterlite_xeus_wren

贡献

开发安装

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

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

# Clone the repo to your local environment
# Change directory to the jupyterlite_xeus_wren directory
# Install package in development mode
python -m 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

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

开发卸载

pip uninstall jupyterlite_xeus_wren

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

打包扩展

见发布

下载文件

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

源分布

jupyterlite-xeus-wren-0.2.1.tar.gz (4.3 MB 查看哈希)

已上传 source

内置分布

jupyterlite_xeus_wren-0.2.1-py3-none-any.whl (4.2 MB 查看哈希)

已上传 py3