跳转到主要内容

TileDB格式的生物图像可视化JupyterLab扩展

项目描述

tiledb_jupyter_bioimg

Github Actions Status

TileDB格式的生物图像可视化JupyterLab扩展

需求

  • JupyterLab >= 3.0

安装

pip install tiledb_jupyter_bioimg

贡献

开发安装

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

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

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

您可以在不同的终端中同时监视源目录并运行JupyterLab,以监视扩展源的变化并自动重新构建扩展。

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab

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

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

jupyter lab build --minimize=False

卸载

pip uninstall tiledb_jupyter_bioimg

用法

from tiledb_jupyter_bioimg import Render

Render("<<NAMESPACE>>", "<<GROUP_ID>>", {"token": "<<TILEDB_API_TOKEN>>>"})

常见问题

如果您收到错误Uncaught (in promise) Error: No provider for: jupyter.extensions.jupyterWidgetRegistry.,请确保您正在使用正确的ipywidgets版本(v8)。

项目详情


下载文件

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

源代码分发

tiledb_jupyter_bioimg-0.2.1.tar.gz (454.9 kB 查看散列)

上传时间 源代码

构建分发

tiledb_jupyter_bioimg-0.2.1-py3-none-any.whl (905.3 kB 查看散列)

上传时间 Python 3

由以下机构支持