跳转到主要内容

用于渲染BPMN文件的JupyterLab扩展

项目描述

jupyterlab_bpmn

Github Actions StatusBinder 用于渲染BPMN文件的JupyterLab扩展

需求

  • JupyterLab >= 3.0

安装

要安装此扩展,请执行

pip install jupyterlab_bpmn

卸载

要删除此扩展,请执行

pip uninstall jupyterlab_bpmn

贡献

开发安装

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

jlpm 命令是JupyterLab随附的 yarn 固定版本。您可以在下面使用 yarnnpm 代替 jlpm

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

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

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

jupyter lab build --minimize=False

开发卸载

pip uninstall jupyterlab_bpmn

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

测试扩展

前端测试

此扩展使用 Jest 进行 JavaScript 代码测试。

要执行它们,请执行

jlpm
jlpm test

集成测试

此扩展使用 Playwright 进行集成测试(即用户级测试)。更确切地说,JupyterLab 辅助 Galata 用于在 JupyterLab 中测试扩展。

有关详细信息,请参阅 ui-tests README。

打包扩展

RELEASE

项目详情


下载文件

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

源分布

此版本没有可用的源分布文件。请参阅 生成分布存档的教程

构建分布

jupyterlab_bpmn-0.5.6-py3-none-any.whl (138.3 kB 查看散列)

上传时间 Python 3

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页