Jupyterlab extension to allow copying and exporting any given SVG graphics as PNG
Project description
jupyterlab_export_svg_as_png_extension
[!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.
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 DPI - Control output resolution from 72 (screen) to 1200 (professional print), default 300
- Background color options - Export with transparent, white, black, or custom background color
- Works everywhere - Context menu appears on SVG outputs, markdown previews, and HTML rendered content
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
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_export_svg_as_png_extension-1.0.6.tar.gz.
File metadata
- Download URL: jupyterlab_export_svg_as_png_extension-1.0.6.tar.gz
- Upload date:
- Size: 574.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e8467497cf44e051f93a12b7d571e0f9e0c7b1d8e6221db3d17b18cc28e5450
|
|
| MD5 |
50862dd7a72a174cc9cb543406663409
|
|
| BLAKE2b-256 |
0a88a6d7b4cc0b486eeac53c908a267a9049f488bd663cf29821a2330ffab93e
|
File details
Details for the file jupyterlab_export_svg_as_png_extension-1.0.6-py3-none-any.whl.
File metadata
- Download URL: jupyterlab_export_svg_as_png_extension-1.0.6-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4005187be1c89a7306bd3130ad244da8c32f7eab14a2e4ae45841e6feb0ed93
|
|
| MD5 |
b582df6a35f445c8bcbc20d9e926aa4d
|
|
| BLAKE2b-256 |
24dfca0c8d68ffb37e98a90864b232c9499b26456735261956efcae5783bdb7e
|