跳转到主要内容

为JupyterLite笔记本定制的Grist小部件

项目描述

grist_jupyterlab_widget

Github Actions状态 为JupyterLite笔记本定制的Grist小部件

需求

  • JupyterLab >= 4.0.0

安装

要安装此扩展,请执行

pip install grist_jupyterlab_widget

卸载

要移除此扩展,请执行

pip uninstall grist_jupyterlab_widget

贡献

开发安装

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

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

# Clone the repo to your local environment
# Change directory to the grist_jupyterlab_widget directory
# Install package in development mode
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以在浏览器中加载更改(您可能需要等待几秒钟以等待扩展重新构建)。

默认情况下,jlpm build 命令为该扩展生成源映射,以便更容易使用浏览器开发者工具进行调试。要同时为JupyterLab核心扩展生成源映射,您可以运行以下命令

jupyter lab build --minimize=False

开发卸载

pip uninstall grist_jupyterlab_widget

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

打包扩展

RELEASE

项目详情


下载文件

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

源分发

grist_jupyterlab_widget-0.7.0.tar.gz (99.7 kB 查看哈希值)

上传时间

构建分发

grist_jupyterlab_widget-0.7.0-py3-none-any.whl (23.0 kB 查看哈希值)

上传时间 Python 3

由...