Skip to main content

Jupyterlab extension to just render the drawio diagram (viewer in Jupyterlab)

Project description

jupyterlab_drawio_render_extension

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

[!TIP] This extension is part of the stellars_jupyterlab_extensions metapackage. Install all Stellars extensions at once: pip install stellars_jupyterlab_extensions

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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterlab_drawio_render_extension-1.0.18.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file jupyterlab_drawio_render_extension-1.0.18.tar.gz.

File metadata

File hashes

Hashes for jupyterlab_drawio_render_extension-1.0.18.tar.gz
Algorithm Hash digest
SHA256 6c8af87045f6f8c32770c9f72ded2667858ff9944cc953cbbb4e896caba029da
MD5 44f851e2a1ab4ace3a20ea230a742428
BLAKE2b-256 36f0a130656b06c5c5357a88073cebf3bd5d7cee710385765b43ef476285738c

See more details on using hashes here.

File details

Details for the file jupyterlab_drawio_render_extension-1.0.18-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_drawio_render_extension-1.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 3935bd68de5ce6fc2420a67586ebfc196c73c1122dcac172476b63fb7b270938
MD5 9695b4f1e8779d8e117b71f932d0a22f
BLAKE2b-256 d61d8d1b6070182d81c1d5dff2f77ab1aaec12200b064de09f88b5b3c29b9003

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page