Skip to content

Cells Can Be Seen Popping in and out After Clearing or Collapsing OutputΒ #7726

@cbzoozoom7

Description

@cbzoozoom7

Description

After collapsing or clearing all output, cells can be seen appearing and disappearing on screen when scrolling. This can leaves the bottom half of your screen blank (or maybe the whole screen if the document is long enough). This makes it difficult to fit a lot on screen and casts doubt on whether you are actually seeing the bottom of the document when you get to the bottom

Reproduce

Open a long notebook with lots of long output.
Use View > Collapse All Outputs or Kernel > Restart Kernel and Clear Outputs of All Cells to get rid of the output.
Scroll down and observe how Jupyter becomes confused about the location of the bottom of the screen. As you scroll down, blank background scrolls into view, and cells don't appear on it until it reaches the middle of the screen. As you scroll up, cells disappear once they descend to the middle of the screen.

Expected behavior

This culling should be happening off screen.

Context

  • Operating System and version: MacOS 26.0 Tahoe arm64
  • Browser and version: Safari 26.0 (21622.1.22.11.14) and Chrome 140.0.7339.133
  • Jupyter Notebook version: 7.4.5
Troubleshoot Output
$PATH:
	/Library/Frameworks/Python.framework/Versions/3.13/bin
	/opt/homebrew/bin
	/opt/homebrew/sbin
	/usr/local/bin
	/System/Cryptexes/App/usr/bin
	/usr/bin
	/bin
	/usr/sbin
	/sbin
	/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
	/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
	/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
	/Library/Apple/usr/bin
	/Library/Frameworks/Mono.framework/Versions/Current/Commands

sys.path:
/opt/homebrew/Cellar/jupyterlab/4.4.7/libexec/bin
/opt/homebrew/Cellar/[email protected]/3.13.7/Frameworks/Python.framework/Versions/3.13/lib/python313.zip
/opt/homebrew/Cellar/[email protected]/3.13.7/Frameworks/Python.framework/Versions/3.13/lib/python3.13
/opt/homebrew/Cellar/[email protected]/3.13.7/Frameworks/Python.framework/Versions/3.13/lib/python3.13/lib-dynload
/opt/homebrew/Cellar/jupyterlab/4.4.7/libexec/lib/python3.13/site-packages
/opt/homebrew/opt/certifi/lib/python3.13/site-packages
/opt/homebrew/lib/python3.13/site-packages

sys.executable:
/opt/homebrew/Cellar/jupyterlab/4.4.7/libexec/bin/python

sys.version:
3.13.7 (main, Aug 14 2025, 11:12:11) [Clang 17.0.0 (clang-1700.0.13.3)]

platform.platform():
macOS-26.0-arm64-arm-64bit-Mach-O

which -a jupyter:
/opt/homebrew/bin/jupyter

pip list:
Package Version
------------------------- --------------
anyio 4.10.0
appnope 0.1.4
argon2-cffi 25.1.0
argon2-cffi-bindings 25.1.0
arrow 1.3.0
asttokens 3.0.0
async-lru 2.0.5
attrs 25.3.0
babel 2.17.0
beautifulsoup4 4.13.5
bleach 6.2.0
certifi 2025.8.3
cffi 1.17.1
charset-normalizer 3.4.3
comm 0.2.3
contourpy 1.3.3
cycler 0.12.1
debugpy 1.8.16
decorator 5.2.1
defusedxml 0.7.1
executing 2.2.1
fastjsonschema 2.21.2
fonttools 4.59.2
fqdn 1.5.1
h11 0.16.0
hatch-jupyter-builder 0.9.1
hatch-nodejs-version 0.4.0
hatchling 1.27.0
httpcore 1.0.9
httpx 0.28.1
idna 3.10
ipykernel 6.30.1
ipython 9.5.0
ipython_pygments_lexers 1.1.1
isoduration 20.11.0
jedi 0.19.2
Jinja2 3.1.6
json5 0.12.1
jsonpointer 3.0.0
jsonschema 4.25.1
jsonschema-specifications 2025.4.1
jupyter_client 8.6.3
jupyter-console 6.6.3
jupyter_core 5.8.1
jupyter-events 0.12.0
jupyter-lsp 2.3.0
jupyter_server 2.17.0
jupyter_server_terminals 0.5.3
jupyterlab 4.4.7
jupyterlab_pygments 0.3.0
jupyterlab_server 2.27.3
kiwisolver 1.4.9
lark 1.2.2
MarkupSafe 3.0.2
matplotlib 3.10.6
matplotlib-inline 0.1.7
mistune 3.1.4
nbclient 0.10.2
nbconvert 7.16.6
nbformat 5.10.4
nest_asyncio 1.6.0
notebook 7.4.5
notebook_shim 0.2.4
numpy 2.3.3
packaging 25.0
pandocfilters 1.5.1
parso 0.8.5
pathspec 0.12.1
pexpect 4.9.0
pillow 11.3.0
pip 25.2
platformdirs 4.4.0
pluggy 1.6.0
prometheus_client 0.22.1
prompt_toolkit 3.0.52
psutil 7.0.0
ptyprocess 0.7.0
pure_eval 0.2.3
pycparser 2.22
Pygments 2.19.2
pyparsing 3.2.3
python-dateutil 2.9.0.post0
python-json-logger 3.3.0
PyYAML 6.0.2
pyzmq 27.0.2
referencing 0.36.2
requests 2.32.5
rfc3339_validator 0.1.4
rfc3986_validator 0.1.1
rfc3987-syntax 1.1.0
rpds-py 0.27.1
Send2Trash 1.8.3
setuptools 80.9.0
six 1.17.0
sniffio 1.3.1
soupsieve 2.8
stack_data 0.6.3
terminado 0.18.1
tinycss2 1.4.0
tornado 6.5.2
traitlets 5.14.3
trove-classifiers 2025.8.26.11
types-python-dateutil 2.9.0.20250822
typing_extensions 4.15.0
uri-template 1.3.0
urllib3 2.5.0
wcwidth 0.2.13
webcolors 24.11.1
webencodings 0.5.1
websocket-client 1.8.0
wheel 0.45.1

Command Line Output
Paste the output from your command line running `jupyter notebook` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions