Skip to main content

jupyterlab_export_svg_as_png_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

Copy or export any SVG graphic in JupyterLab as a high-quality PNG image. Right-click on any SVG element - whether it's a chart output, a diagram, or an inline graphic - and choose to copy it to the clipboard as PNG or save it as a PNG file.

Full disclosure: SVG is a perfectly fine format that nobody asked to be converted. But sometimes you need a PNG for a slide deck, a report, or that one colleague who insists on pasting images into Word documents. This extension won't judge. It just converts.

Context menu on an SVG inside a markdown file

Context menu on an SVG file opened directly in the image viewer

Features

  • Copy SVG as PNG - Right-click any SVG in a notebook output or document and copy it as a PNG to the clipboard
  • Save SVG as PNG file - Download any SVG as a high-quality PNG file with a deterministic filename
  • Theme-aware export - Resolves @media (prefers-color-scheme) CSS in SVGs with configurable mode: follow JupyterLab theme (system), or force light/dark
  • Configurable output width - Set the PNG width in pixels (64 to 8192, default 1920/Full HD); height scales proportionally to preserve aspect ratio
  • Background color options - Export with transparent, white, black, or custom background color
  • Works everywhere - Context menu appears on SVG outputs, markdown previews, HTML rendered content, and SVG files opened directly

Installation

Requires JupyterLab 4.0.0 or higher.

pip install jupyterlab-export-svg-as-png-extension

Uninstall

pip uninstall jupyterlab-export-svg-as-png-extension

Metadata

Release files for jupyterlab-export-svg-as-png-extension 1.1.15

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-export-svg-as-png-extension 1.1.15
File Size Uploaded
jupyterlab_export_svg_as_png_extension-1.1.15.tar.gz 692.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-export-svg-as-png-extension 1.1.15
File Interpreter ABI Platform
jupyterlab_export_svg_as_png_extension-1.1.15-py3-none-any.whl Python 3 none any Details

Total release size: 733.1 kB

Release files / jupyterlab_export_svg_as_png_extension-1.1.15.tar.gz

Download URL jupyterlab_export_svg_as_png_extension-1.1.15.tar.gz
Size 692.2 kB
Tags Source
SHA-256 checksum
How to use checksums
24c215ae4d8b3771e42210b34605278d26b2286cbf260b55b1ff8ed599e27452
BLAKE2b-256 checksum
How to use checksums
44cf4da0e6c3ea9b20c50de9320bcb6c358046c3fc082e8ae2c7000d7da4be10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / jupyterlab_export_svg_as_png_extension-1.1.15-py3-none-any.whl

Download URL jupyterlab_export_svg_as_png_extension-1.1.15-py3-none-any.whl
Size 40.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbdcacea835fc969845897e9a741497f425b1d5b29616d0c9f2da731fd5ece2a
BLAKE2b-256 checksum
How to use checksums
a1d9b8f6234e23d7b18af0cca7e0ed60cca5a38aad53661ed925fa1854af1c61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

1.1.15 This release

2 release files

1.1.14

2 release files

1.1.13

2 release files

1.1.6

2 release files

1.1.4

2 release files

1.1.2

2 release files

1.0.8

2 release files

1.0.6

2 release files

1.0.5

2 release files

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