Skip to main content

JupyterLite - p5.js 内核扩展

项目描述

jupyterlite-p5-内核

Github 操作状态

JupyterLite 的 p5.js 内核。

图片

要求

安装

这个 JupyterLite 内核可以作为联合服务器扩展安装。

# install the kernel
pip install jupyterlite-p5-kernel

# build a new JupyterLite site
jupyter lite build

有关如何构建站点和包含其他扩展的更多信息,请参阅 JupyterLite 文档:https ://jupyterlite.readthedocs.io/en/latest/configuring.html#adding-extensions

卸载

pip uninstall jupyterlite-p5-kernel

贡献

开发安装

# Clone the repo to your local environment
# Change directory to the fork directory

# create a new enviroment
mamba create --name jupyterlite-p5-kernel -c conda-forge python=3.9 yarn jupyterlab
conda activate jupyterlite-p5-kernel

# Install package in development mode
python -m pip install -e .

# Link your development version of the extension with JupyterLab
jlpm run install:extension

# Rebuild the extension Typescript source after making changes
jlpm run build

扩展程序应链接到PREFIX/share/jupyter/labextensions并可以通过以下方式获取jupyterlite:

# install jupyterlite
python -m pip install jupyterlite

# build a new JupyterLite site
jupyter lite build

# server the site
jupyter lite serve

然后转到http://localhost:8000以使用联合服务器扩展启动 JupyterLite。

项目详情


下载文件

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

源分布

jupyterlite-p5-kernel-0.1.0a12.tar.gz (267.9 kB 查看哈希)

已上传 source

内置分布

jupyterlite_p5_kernel-0.1.0a12-py3-none-any.whl (81.5 kB 查看哈希)

已上传 py3