跳转到主要内容

在jupyterlab中查看figurl图像

项目描述

figurl-jupyter

Build Status codecov

在jupyterlab中查看figurl图像

安装

您可以使用pip进行安装

pip install figurl_jupyter

如果您正在使用Jupyter Notebook 5.2或更早版本,可能还需要启用nbextension

jupyter nbextension enable --py [--sys-prefix|--user|--system] figurl_jupyter

开发安装

创建开发环境

conda create -n figurl_jupyter-dev -c conda-forge nodejs yarn python jupyterlab
conda activate figurl_jupyter-dev

安装Python。这将还会构建TS包。

pip install -e ".[test, examples]"

在开发您的扩展时,您需要手动使用笔记本/实验室前端启用您的扩展。对于实验室,这通过以下命令完成

jupyter labextension develop --overwrite .
yarn run build

对于经典笔记本,您需要运行

jupyter nbextension install --sys-prefix --symlink --overwrite --py figurl_jupyter
jupyter nbextension enable --sys-prefix --py figurl_jupyter

请注意,Windows上--symlink标志不起作用,因此您在重建扩展时必须每次都运行install命令。对于某些安装,您可能还需要使用除--sys-prefix之外的另一个标志,但这里不会介绍这些标志的含义。

如何查看您的更改

Typescript

如果您使用JupyterLab进行开发,则可以在不同终端中同时运行JupyterLab来监视源目录并监视扩展源中的更改,并自动重建小部件。

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

更改后,等待构建完成,然后刷新您的浏览器,更改应该生效。

Python

如果您对Python代码进行了更改,则需要重新启动笔记本内核才能生效。

项目详情


下载文件

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

源分布

figurl_jupyter-0.2.8.tar.gz (1.3 MB 查看哈希值)

上传时间

构建分布

figurl_jupyter-0.2.8-py2.py3-none-any.whl (2.7 MB 查看哈希值)

上传时间 Python 2 Python 3