Description
Environment data
- VS Code version: 1.99.3 (Universal)
- Jupyter Extension version (available under the Extensions sidebar): 2025.3.0
- Python Extension version (available under the Extensions sidebar): 2025.4.0
- OS (Windows | Mac | Linux distro) and version: Mac | macOS Sonoma 14.7.4
- Python and/or Anaconda version: 3.9.6
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
- Jupyter server running: Local
Expected behaviour
Scrolling through notebook cells (including ones with images) should feel consistent and smooth, with no noticeable delay or slowdown when reaching large image outputs.
Actual behaviour
When scrolling through .ipynb
notebooks in VS Code on macOS using a touchpad, the scroll motion noticeably slows or sticks when passing output cells that contain images, but sometimes not only though images, but mainly through images (e.g., matplotlib plots or other rendered outputs). This happens even when images are small and occurs on multiple machines with very different hardware specs. It feels like the scroll is being artificially dampened near image outputs. I use MacBook Pro M1, 32 GB RAM and tried it too on other Macs' and the same thing is happening, it's only like that with using touchpad, mouse use makes the problem disappear. I tried different settings related to scrolling and rendering, nothing is helping.
Steps to reproduce:
-
Open any
.ipynb
file in VS Code. -
Run a code cell that displays an image (e.g.,
matplotlib.pyplot.imshow(...)
orIPython.display.Image(...)
) -
Try scrolling through the notebook using a MacBook touchpad.
-
Observe the slowdown when passing image outputs.
-
The file needs to have a few cells with actual content — the issue does not happen in minimal notebooks with only a few light cells. The slowdown is only noticeable in notebooks with more cells (e.g., some Markdown, plots, outputs, etc.).
-
XXX
Logs
Output for Jupyter
in the Output
panel
XXX