Jupyterlab extension to just render the drawio diagram (viewer in Jupyterlab)
Project description
jupyterlab_drawio_render_extension
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.
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 - Zoom, 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.
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.0.0
- Python >= 3.10
Installation
pip install jupyterlab-drawio-render-extension
Uninstall
pip uninstall jupyterlab-drawio-render-extension
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyterlab_drawio_render_extension-1.0.15.tar.gz.
File metadata
- Download URL: jupyterlab_drawio_render_extension-1.0.15.tar.gz
- Upload date:
- Size: 7.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02c92066935496f03f1ef7d559ccd58170a5698ee975bd897b97d5b6ad55ccf3
|
|
| MD5 |
a85dd68449d623a6dda0da2cb5f57ce0
|
|
| BLAKE2b-256 |
c298a5b334e026ccd81ee715874f8f19ee52f6867430a47143907e41e5bd11cf
|
File details
Details for the file jupyterlab_drawio_render_extension-1.0.15-py3-none-any.whl.
File metadata
- Download URL: jupyterlab_drawio_render_extension-1.0.15-py3-none-any.whl
- Upload date:
- Size: 6.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dd39b7cbd98c85d76c937bcaabf2a1b1d197ca1c22e9fffcd4045eab74f3dd1
|
|
| MD5 |
ddc64532eee465dd11ca5f1160379ffb
|
|
| BLAKE2b-256 |
5323a400a4721cb77d4d5f7aa62083d83c5f22dccb1a4fe256e6bf8c0f47e4a1
|