jupyterlab-dagitty 是用于渲染 Dagitty DAG 文件的 JupyterLab 扩展。
项目描述
jupyterlab-dagitty
jupyterlab-dagitty 是用于渲染 dagitty DAG 文件 (.dag
或 .dagitty
) 的 JupyterLab 扩展。
需求
- JupyterLab >= 3.0
安装
pip install jupyterlab-dagitty
贡献
开发安装
注意:您需要 NodeJS 来构建扩展包。
jlpm
命令是 JupyterLab 随附的 yarn 的固定版本。您可以使用 yarn
或 npm
替代下面的 jlpm
。
# Clone the repo to your local environment
# Change directory to the jupyterlab-dagitty directory
# Build dagity distribution (bash script)
bash build_dagitty.sh
# 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 run build
您可以在不同的终端同时监视源目录并运行 JupyterLab,以监视扩展的源代码更改并自动重新构建扩展。
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab
在监视命令运行时,每次保存的更改将立即在本地上构建并可供正在运行的 JupyterLab 使用。刷新 JupyterLab 以在浏览器中加载更改(您可能需要等待几秒钟以重新构建扩展)。
默认情况下,jlpm run build
命令为此扩展生成源映射,以便使用浏览器开发者工具进行调试。要为JupyterLab核心扩展也生成源映射,可以运行以下命令
jupyter lab build --minimize=False
卸载
pip uninstall jupyterlab-dagitty
jupyter labextension uninstall jupyterlab-dagitty
项目详情
下载文件
下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。
源分布
jupyterlab-dagitty-0.3.5.tar.gz (131.1 kB 查看哈希值)
构建分布
jupyterlab_dagitty-0.3.5-py3-none-any.whl (117.6 kB 查看哈希值)
关闭
jupyterlab-dagitty-0.3.5.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 87dd8bf8d9ff7ef439caff56179f5ba194d4ce937734a3effe06b56868bcaf28 |
|
MD5 | 9a5c1efe512c75996b17cd9b0f34a225 |
|
BLAKE2b-256 | 0a94b014a0324ec4243e3805f382efb1c8b486414f0a83fd710c882877307f72 |
关闭
jupyterlab_dagitty-0.3.5-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 959a210950bd1771c7224e3fc78cc74aaea4c16046a27ca918851592fcaac88f |
|
MD5 | 3f5f5e4348e67feeabd441fc4515ebaf |
|
BLAKE2b-256 | 507f69f34cfc5928e3c8965580e9ac2577897169175ba297ee3ff37103041d3e |