在jupyterlab中查看figurl图像
项目描述
figurl-jupyter
在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的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 34b82c161bbf4fffaab83b9113c4f7d79542a0e4b36b69d3dd4ab9fbb1043419 |
|
MD5 | c21a928f1974a1136ba68b0b8cb030b7 |
|
BLAKE2b-256 | e774b94ba34234379801766c29a78c8b213b5da76615eeec80b934bd19771958 |
关闭
figurl_jupyter-0.2.8-py2.py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 306c714b0e246ac5cfb867473dbf8096506f45d2a3efdd172c61b16fb7e8bce8 |
|
MD5 | d717f6c925a4ea38bbb77e2b9c5344a2 |
|
BLAKE2b-256 | 336c8cc0fc0be111e2affd29d115138dacaf37c4ad819d8702500f3453d53560 |