Skip to main content

jupyterlab_drawio_render_extension

GitHub Actions npm version PyPI version Total PyPI downloads JupyterLab 4 Brought To You By KOLOMOLO Donate PayPal

View Draw.io diagrams directly in JupyterLab. Open any .drawio or .dio file and see it rendered with full fidelity - text, shapes, stencils, icons, and styles matching the official Draw.io application.

This extension uses the official Draw.io viewer library from jgraph, served locally from the server extension for offline capability and CSP compliance.

Draw.io Diagram Viewer

Features

  • Full Draw.io rendering - Uses official Draw.io viewer library for pixel-perfect diagram display
  • Read-only viewer - Safe viewing without accidental modifications
  • Interactive controls - Scroll to zoom, drag to pan, layers panel, and lightbox view
  • PNG export - Right-click to copy or download diagram as PNG with configurable DPI
  • Configurable background - Choose from default (theme), black, white, or custom hex color
  • Full stencil support - Veeam, Cisco, AWS, Azure, GCP, and all vendor shapes
  • Offline capable - Viewer library served locally, no external network requests
  • JupyterLab 4 compatible - Built for the latest JupyterLab release

PNG Export

Right-click on any diagram to access export options:

  • Copy Diagram as PNG - Copy to clipboard at configured DPI
  • Download Diagram as PNG - Save as PNG file

Export automatically crops to diagram content with minimal padding.

Agent skill and CLI

The package ships the jupyterlab-drawio CLI with four subcommands: shapes searches the official palette and stencil shapes, stencils lists the stencil sets, validate lints a .drawio file, and layout lays out a graph JSON with Graphviz.

The agent skill lives in the repository at .agents/skills/jupyterlab-drawio-render-extension/ and is installed to share/jupyter/agents/skills/jupyterlab-drawio-render-extension/. No agent reads share/jupyter/agents/skills, so link the installed copy into the directory your agent reads.

After pip install, with the Python that runs the lab:

mkdir -p ~/.agents/skills && ln -sfn "$(python -c 'import sys; print(sys.prefix)')/share/jupyter/agents/skills/jupyterlab-drawio-render-extension" ~/.agents/skills/jupyterlab-drawio-render-extension

From a clone:

mkdir -p ~/.claude/skills && ln -sfn "$PWD/.agents/skills/jupyterlab-drawio-render-extension" ~/.claude/skills/jupyterlab-drawio-render-extension

Settings

Configure the extension in Settings > Draw.io Viewer:

Viewer Settings

Setting Description Default
Background Viewer background: default (theme), black, white, custom default
Custom Background Color Hex color (e.g., #f0f0f0) when background is custom #ffffff

Export Settings

Setting Description Default
Export DPI Resolution for PNG export (72-1200). Higher = larger file 300
Export Background PNG background: transparent, white, black, custom white

Requirements

  • JupyterLab >= 4.6.0
  • Python >= 3.12

Installation

pip install jupyterlab-drawio-render-extension

Uninstall

pip uninstall jupyterlab-drawio-render-extension

Metadata

Release files for jupyterlab-drawio-render-extension 1.0.33

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyterlab-drawio-render-extension 1.0.33
File Size Uploaded Provenance Actions
jupyterlab_drawio_render_extension-1.0.33.tar.gz 5.8 MB Without provenance Details for jupyterlab_drawio_render_extension-1.0.33.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-drawio-render-extension 1.0.33
File Interpreter ABI Platform Actions
jupyterlab_drawio_render_extension-1.0.33-py3-none-any.whl Python 3 none any Details for jupyterlab_drawio_render_extension-1.0.33-py3-none-any.whl

Total release size: 11.0 MB

Release files / jupyterlab_drawio_render_extension-1.0.33.tar.gz

Download URL jupyterlab_drawio_render_extension-1.0.33.tar.gz
Size 5.8 MB
Tags Source
SHA-256 checksum
How to use checksums
1a0e9555881d4942ff2b9d95890e500a37bc6a39c6eb5246f49467e187c864bc
BLAKE2b-256 checksum
How to use checksums
8f7bdf1213cc21911079e95b280a6259700e7d7df5903135268f58f44ffaf22e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / jupyterlab_drawio_render_extension-1.0.33-py3-none-any.whl

Download URL jupyterlab_drawio_render_extension-1.0.33-py3-none-any.whl
Size 5.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
50187899130b24d0023d6ae43aba696dcbdbc6e5c0d033e9ea218e844c7ef766
BLAKE2b-256 checksum
How to use checksums
fc13198123a005e7a7c39448c0cc8744a1e16d5afd1c3be8ca6c48ef724bf9d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for jupyterlab-drawio-render-extension 1.0.33

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page