Skip to main content

Draw.io Diagrams as Jupyter Widgets (Kernel-only)

Project description

IPyDrawio Widgets

docs binder-badge install from pypi install from conda-forge build coverage

The kernel-side classes for ipydrawio.

This package is useful in situations where your JupyterLab client is configured in another environment than the kernel that might create widgets.

See the main project repo for more information.

Installation

Note: Usually, you'll want the entire ipydrawio suite, replacing ipydrawio-widgets with ipydrawio!

To install just the kernel-side widgets (without any of the front end assets):

pip install ipydrawio-widgets  # or...
mamba install -c conda-forge ipydrawio-widgets  # or...
conda install -c conda-forge ipydrawio-widgets

Usage

Display a basic diagram:

from ipydrawio_widgets import Diagram

diagram = Diagram()
diagram

Update the XML source:

from pathlib import Path
diagram.source.value = Path("a-drawio.dio").read_text()

The .source.value will always contain the up-to-date XML.

For more, see the documentation

Open Source

This work is licensed under the Apache-2.0 License.

Copyright 2022 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

  http://www.apache.org/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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipydrawio-widgets-1.2.1.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

ipydrawio_widgets-1.2.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file ipydrawio-widgets-1.2.1.tar.gz.

File metadata

  • Download URL: ipydrawio-widgets-1.2.1.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for ipydrawio-widgets-1.2.1.tar.gz
Algorithm Hash digest
SHA256 7ed4860898a1d3472c17ab28caf6b5d5a41614becb94fb280e9200949b43b1d2
MD5 daf0bdef07c6f710ac7f7d6b12a88020
BLAKE2b-256 b0ec0c897eccd4ebe06d81baa1a929cbe243552b82632f815a03ff553380ef24

See more details on using hashes here.

Provenance

File details

Details for the file ipydrawio_widgets-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ipydrawio_widgets-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb7f9fb094f248888245b6674808618fc0e023e6cee526a8ce54772b2da85386
MD5 aff1bf80e9db83e439d76da178b50539
BLAKE2b-256 c713fda930b4bd3efd4062ba4f2c7f2553215989602d8515589b87255ff411bb

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page