jupyterlab_advanced_image_viewer_extension
v1.0.7
Published
JupyterLab extension for advanced image viewing: fit-to-screen, cursor-anchored wheel zoom, drag-to-pan, and Left/Right arrow keys to move to the previous and next image in a folder
Maintainers
Readme
jupyterlab_advanced_image_viewer_extension
A JupyterLab 4 extension that makes the built-in image viewer interactive. Images open fitted to the panel just like the stock viewer, then you can zoom with the wheel, pan by dragging, and step through a folder of images with the arrow keys - all in a single viewer tab.

The viewer toolbar adds zoom in / out / fit controls and a help link that lists every keybinding.
Features
- Fit to screen - every image opens scaled to fit the panel (same result as the stock viewer), and reset returns to that fit
- Wheel zoom - scroll to zoom in and out, anchored at the cursor; zoom out as far as you like
- Drag to pan - hold and drag to move the image at any zoom (canvas-style); the grab cursor is always available and Fit recenters
- Toolbar controls - zoom in, zoom out, and reset-to-fit buttons on the viewer toolbar
- Arrow-key navigation - Left and Right open the previous and next image in the same folder, advancing within one viewer instead of opening new tabs
Requirements
- JupyterLab >= 4.0.0
Install
To install the extension, execute:
pip install jupyterlab_advanced_image_viewer_extensionUninstall
To remove the extension, execute:
pip uninstall jupyterlab_advanced_image_viewer_extension