跳转到主要内容

JupyterLite的echo内核

项目描述

jupyterlite-echo-kernel

Github Actions Status

JupyterLite的echo内核。

echo-kernel

需求

  • JupyterLite >= 0.1.0a10

安装

要安装扩展,执行

pip install jupyterlite-echo-kernel

然后构建您的JupyterLite站点

jupyter lite build

卸载

要移除扩展,执行

pip uninstall jupyterlite-echo-kernel

贡献

开发安装

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

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

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

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

开发卸载

pip uninstall jupyterlite-echo-kernel

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

打包扩展

RELEASE

由以下组织支持