Skip to main content

PDF export for Drawio diagrams in Jupyter Notebook and JupyterLab

Project description

jupyter-drawio-export

PDF export of drawio diagrams for Jupyter.

See the project repo for more information.

Server Extension

jupyter-drawio-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 jupyter_drawio_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 jupyter-drawio-export
jupyter drawio-export 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 drawio-config provision

Open Source

This work is licensed under the Apache 2.0.

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

jupyter-drawio-export-0.8.0a1.tar.gz (25.8 kB view hashes)

Uploaded Source

Built Distribution

jupyter_drawio_export-0.8.0a1-py3-none-any.whl (31.3 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