Draw.io 图形作为 Jupyter 小部件(仅内核)
项目描述
IPyDrawio Widgets
为 ipydrawio 提供内核侧类。
此包在您的 JupyterLab 客户端配置在与可能创建小部件的内核不同的环境中的情况下很有用。
有关更多信息,请参阅 主项目仓库。
安装
注意: 通常,您会想要整个
ipydrawio
套件,将ipydrawio-widgets
替换为ipydrawio
!
仅安装内核侧小部件(不包含任何前端资产)
pip install ipydrawio-widgets # or...
mamba install -c conda-forge ipydrawio-widgets # or...
conda install -c conda-forge ipydrawio-widgets
用法
显示基本图表
from ipydrawio_widgets import Diagram
diagram = Diagram()
diagram
更新 XML 源
from pathlib import Path
diagram.source.value = Path("a-drawio.dio").read_text()
.source.value
总是包含最新的 XML。
更多信息请参阅文档
开源
此作品根据 Apache-2.0 许可证授权。
Copyright 2023 ipydrawio contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://apache.ac.cn/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
项目详情
下载文件
下载适合您平台的文件。如果您不确定该选择哪个,请了解有关安装包的更多信息。
源代码分发
ipydrawio-widgets-1.3.0.tar.gz (19.5 kB 查看哈希值)