跳转到主要内容

一个JupyterLite服务器扩展。

项目描述

jupyteach_jupyterlite_contents

Github Actions Status

一个JupyterLite服务器扩展。

要求

  • JupyterLite >= 0.1.0b15

安装

要安装扩展,请执行

pip install jupyteach_jupyterlite_contents

然后构建您的JupyterLite站点

jupyter lite build

卸载

要删除扩展,请执行

pip uninstall jupyteach_jupyterlite_contents

贡献

开发安装

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

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

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

您可以在不同的终端中同时监视源目录并运行JupyterLab,以监视扩展源的变化并自动重新构建扩展。

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab

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

开发卸载

pip uninstall jupyteach_jupyterlite_contents

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

打包扩展

RELEASE

# first incremement version numbers in _version.py and package.json

# npm
yarn run build:prod
npm publish --access public

# python
python -m build
twine upload dist/*

项目详情


下载文件

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

源分布

jupyteach_jupyterlite_contents-0.1.7.tar.gz (293.8 kB 查看哈希值)

上传时间

构建分布

jupyteach_jupyterlite_contents-0.1.7-py3-none-any.whl (16.9 kB 查看哈希值)

上传时间 Python 3

支持者