一个JupyterLite服务器扩展。
项目描述
jupyteach_jupyterlite_contents
一个JupyterLite服务器扩展。
要求
- JupyterLite >= 0.1.0b15
安装
要安装扩展,请执行
pip install jupyteach_jupyterlite_contents
然后构建您的JupyterLite站点
jupyter lite build
卸载
要删除扩展,请执行
pip uninstall jupyteach_jupyterlite_contents
贡献
开发安装
注意:您需要NodeJS来构建扩展包。
jlpm
命令是JupyterLab预装版本的 yarn,与JupyterLab一起安装。您可以使用 yarn
或 npm
代替下面的 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.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 249e414f739936c5b9991dd205fedb3c9d4d4d7055d9324b0c3a83bf3211bfd5 |
|
MD5 | c5a01721bbe8e31f7d6d5c7d68790245 |
|
BLAKE2b-256 | 383425c8a8caa9b75f6588f85760488a914387ad2a0b9d63ddae43da8bc7e398 |
关闭
jupyteach_jupyterlite_contents-0.1.7-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 5a174535e1b0bdf462f1b6a14a4f4c105b2345d819028f5834f2dac3d2c93d83 |
|
MD5 | 8e74974e6247c8e45872bca7b2318ad3 |
|
BLAKE2b-256 | 13d32278ad668b5d06f55ffb8452a9777c77bef22ce2c04132d086e150fcfb29 |