Skip to main content

PDF export for Drawio diagrams in JupyterLab

Project description

ipydrawio-export

PDF export of drawio diagrams for Jupyter.

See the project repo for more information.

Installation

pip install ipydrawio-export

Server Extension

ipydrawio-export runs as a server extension. When installed, it should be automatically configured. If problems arise, it can be manually enabled:

jupyter serverextension list   # If you don't see it here...
jupyter serverextension enable --sys-prefix --py ipydrawio_export  # run this...
jupyter serverextension list   # ... then check it again

Command-Line Usage

Exporting PDF

PDF can also be generated from the command line:

pip install ipydrawio-export
jupyter drawio-export pdf some_file.dio

If needed, the nodejs application will be installed into the Jupyter data path.

jupyter config --paths  # it uses the one in the environment

In the future, it's hoped this can be packaged more conveniently.

Provisioning

To ensure the nodejs application is installed without exporting a PDF (e.g when building a docker container).

jupyter ipydrawio-export provision

Open Source

This work is licensed under the Apache-2.0 License.

The vendored code from @jgraph/draw-image-export2 is also licensed under the Apache-2.0 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-export-1.0.0a0.tar.gz (45.5 kB view hashes)

Uploaded Source

Built Distribution

ipydrawio_export-1.0.0a0-py3-none-any.whl (59.0 kB 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