Skip to main content

jupyterlab_fit_image_size_extension

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

Automatically scales images to fit within the view when they exceed container dimensions, while preserving original size for smaller images. Applies to both raster formats (PNG, JPG) and vector formats (SVG).

Full disclosure: This extension is mass-produced mediocrity at its finest. It does one thing that probably should have been a default setting. No configuration, no options, no preferences panel - just CSS that your browser was already capable of applying. You're essentially installing a stylesheet. Revolutionary. We're almost ashamed of it. Almost.

Features

  • Automatic image scaling - Large images are scaled down to fit within view boundaries
  • Preserves small images - Images smaller than container remain at original size
  • Raster format support - Works with PNG, JPG, GIF, and other raster formats
  • Vector format support - SVG images also respect container bounds
  • Notebook outputs - Handles images in code cell outputs
  • Markdown cells - Images in markdown cells are also scaled
  • Standalone viewer - Works when opening image files directly in JupyterLab
  • Zero configuration - Just install and forget

Installation

Requires JupyterLab 4.0.0 or higher.

pip install jupyterlab_fit_image_size_extension

Uninstall

pip uninstall jupyterlab_fit_image_size_extension

License

BSD-3-Clause

Metadata

Release files for jupyterlab-fit-image-size-extension 1.0.4

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-fit-image-size-extension 1.0.4
File Size Uploaded
jupyterlab_fit_image_size_extension-1.0.4.tar.gz 146.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-fit-image-size-extension 1.0.4
File Interpreter ABI Platform
jupyterlab_fit_image_size_extension-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 161.5 kB

Release files / jupyterlab_fit_image_size_extension-1.0.4.tar.gz

Download URL jupyterlab_fit_image_size_extension-1.0.4.tar.gz
Size 146.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1948a3c9a184cc68032a666c85929ea8b5bbea2d87b8bf249c1d0a883d196a2b
BLAKE2b-256 checksum
How to use checksums
141dc697b867e979ec02160e0b36d141f46efc0cfb35559b294b1c912aa06d3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / jupyterlab_fit_image_size_extension-1.0.4-py3-none-any.whl

Download URL jupyterlab_fit_image_size_extension-1.0.4-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86370100b158e4f8d4f15ceeefca814dd8ed0e349547c29fb30748a21e71647c
BLAKE2b-256 checksum
How to use checksums
147e67ad3e492a469d4c09299aa72c05562128151105d9c7b49e79e1a77e892f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

1.0.4 This release

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