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

Download files

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

Source Distribution

jupyterlab_export_svg_as_png_extension-1.1.13.tar.gz (685.7 kB 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_export_svg_as_png_extension-1.1.13.tar.gz.

File metadata

File hashes

Hashes for jupyterlab_export_svg_as_png_extension-1.1.13.tar.gz
Algorithm Hash digest
SHA256 6b392392026c1dd965a69af72a0a1ebd742e6f63b000beee6c1d1fe1f8a0c07a
MD5 9ae8a25d72a4c332801c6e8afda341b3
BLAKE2b-256 dc83fb0a4a741f454dd798de9a0babe53bb9022050e47c6e33030417751d3709

See more details on using hashes here.

File details

Details for the file jupyterlab_export_svg_as_png_extension-1.1.13-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_export_svg_as_png_extension-1.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0bf241468ffc6e14c2fd70d058633f71c2c719edbf5610cc77d7248bf7098d
MD5 0e45933fb469293933c9afad009a0575
BLAKE2b-256 df80092f2af3ea1c4398edeba0cb6bba8870e457ae0f60357f0bbe52681d5018

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.14

2 files

This release

1.1.13 This release

2 files

1.1.6

2 files

1.1.4

2 files

1.1.2

2 files

1.0.8

2 files

1.0.6

2 files

1.0.5

2 files

Supported by

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