Skip to main content

Draw.io Diagrams as Jupyter Widgets

Project description

IPyDrawio

Drawio diagrams for JupyterLab. Forked with ❤️ from QuantStack/jupyterlab-drawio.


Install · History · Roadmap · Contribute · Open Source · build


This is ALPHA software. Native drawio files created with these tools should work with any other drawio client, but any UI/API is liable to change at any time.

Installation

pip install ipydrawio ipydrawio-export
# TBD: conda install -c conda-forge ipydrawio

Features

  • ipydrawio
  • ipydrawio-export
    • Export print-quality PDF from diagrams
      • BEWARE: some heavy, maybe fragile dependencies

      • include editable Drawio metadata

Examples

Note Screenshot/Example
A Binder demo with a full contributing environment binder-badge
Screenshot of drawio "minimal" UI with export options poster-min
The beginning of an interactive computational poster poster
A mixed computational/creative roadmap for this project ~~Screenshot Needed~

Usage

PDF: Lab and Server extensions

ipydrawio-export can generate print-quality PDF. This approach relies on a headless browser, powered by @jgraph/draw-image-export2 and ultimately puppeteer which in turn requires nodejs.

  • native dependencies as required to appease puppeteer
    • if running in docker, this can be a bit trial-and-error
    • for more, see the binder and CI.
  • nodejs>10,<14 from conda or your system package manager
    • NOTE: this relies on being able to install puppeteer (and other arbitrary dependencies with jlpm for now when first used
      • we'll figure out a better approach soon enough
  • pip install ipydrawio-export

For example:

conda install -yc conda-forge nodejs=12
pip install ipydrawio-export

Open Source

License

All files herein, unless otherwise noted, are free software licensed under Apache 2.0.

Copyright

The copyright holders of this extension are the contributors to this repository.

Portions of the JupyterLab components are derived from QuantStack/jupyterlab-drawio.

The copyright holders of drawio and drawio-export is jgraph.

The original source code vendored in this package from:

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-1.0.0a0.tar.gz (32.1 MB view hashes)

Uploaded Source

Built Distribution

ipydrawio-1.0.0a0-py3-none-any.whl (68.0 MB view hashes)

Uploaded Python 3

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