JupyterLab中的简单图像编辑器。
项目描述
图像编辑器
JupyterLab中的简单图像编辑器。
此扩展利用了在Apache许可证版本2.0下发布的material design图标。
要求
- JupyterLab >= 3.0
安装
要安装扩展,请执行
pip install jupyterlab_image_editor
卸载
要删除扩展,请执行
pip uninstall jupyterlab_image_editor
贡献
开发安装
注意:您需要NodeJS来构建扩展包。
jlpm
命令是JupyterLab附带的版本yarn,与JupyterLab一同安装。您可以使用下面的yarn
或npm
代替jlpm
。
# Clone the repo to your local environment
# Change directory to the jupyterlab_image_editor 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
当监视命令运行时,每次保存的更改都会立即在本地构建并可供正在运行的JupyterLab使用。刷新JupyterLab以在浏览器中加载更改(您可能需要等待几秒钟以重新构建扩展)。
默认情况下,jlpm run build
命令为该扩展生成源映射,以便更容易使用浏览器开发工具进行调试。要为JupyterLab核心扩展生成源映射,您可以运行以下命令
jupyter lab build --minimize=False
开发卸载
pip uninstall jupyterlab_image_editor
在开发模式下,您还需要删除由jupyter labextension develop
命令创建的符号链接。要找到其位置,您可以使用jupyter labextension list
来找出labextensions
文件夹的位置。然后您可以在该文件夹中删除名为image-editor
的符号链接。
打包扩展
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源代码分发
jupyterlab_image_editor-0.1.0.tar.gz (423.1 kB 查看哈希值)
构建分发
关闭
jupyterlab_image_editor-0.1.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 8962da985b610c0229e8ba493dc1caaa74b0a1e99f55b31bce23a105219018cf |
|
MD5 | 1b2868a5f89cf9b3c604c69de423ca03 |
|
BLAKE2b-256 | 5893d449a165361636d239ed4b92d22244c2b2189463014717e0b51ebda0fed5 |
关闭
jupyterlab_image_editor-0.1.0-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 51cb6c2d06a4c8ddfb5a64cb0411d34d7f0e5148958f596635d03695d78efe38 |
|
MD5 | c2f1da33fa180f88dd56e11b6e29be36 |
|
BLAKE2b-256 | f7f29025f5d6c898f86265df2be06faa5cded012164d7d461890c9e3d4459449 |