-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erratic Scroll Jump just when scrolling #15968
Comments
Do you have JupyterLab installed? If so, which version are you using, and do you see this same behavior in Lab? #14106 concerns the scroll bar jumping to the top, but that's not what you're reporting here. |
I was able to reproduce the same behaviour in JupyterLab, basically on first try on a notebook cell that had shown the same behaviour right before in the classical notebook interface. |
A few more random observations:
|
Is there anything I can do to help resolve or at least mitigate this issue. It still happens regularly to me, and it is extremely disorienting and annoying, to the point that I am putting back all work involving a jupyter notebook. |
@burnpanck in fact, yes. Can you test JupyterLab 4.2.0a2 and see if this still happens? |
Unfortunately, the issue seems to persist. This was with |
I just found the older bug report #15795, which, from the description, matches the behaviour I see. |
I am confused, did you see the behaviour in Notebook or in JupyterLab interface?
The author of #15795 says that they cannot reproduce this when switching to Also, are you using a trackpad or a mouse? |
I mostly use the notebook interface, but I previously was able to reproduce it in juptyterlab as-well. I was under the assumption that it is therefore a manifestation of a bug in the shared code-base, and thus observation in either interface counts as confirmation. This may have been a wrong assumption though. The comment you referred to above was in fact an observation from the notebook interface. I will try to verify from the jupyterlab interface again later today. I observed the described behaviour both when scrolling using two-finger scroll on the MacBook Pro trackpad, as-well as when attempting to scroll by clicking and dragging the hidden scroll bar (which appears when initiating a scroll via trackpad), click-drag still done using that same trackpad. This is within Google Chrome. |
I observe similar behavior in Jupyter Lab with Safari on macOS 14.4. See below for installed versions. $ python --version
Python 3.10.9
$ pip freeze | grep jupyter
jupyter==1.0.0
jupyter-console==6.6.3
jupyter-events==0.9.1
jupyter-lsp==2.2.4
jupyter_client==8.6.1
jupyter_core==5.7.2
jupyter_server==2.13.0
jupyter_server_terminals==0.5.3
jupyterlab==4.1.4
jupyterlab_pygments==0.3.0
jupyterlab_server==2.25.4
jupyterlab_widgets==3.0.10 I'll update Jupyter Lab to the most recent version to double check it's not resolved in a recent release. |
I just reproduced it again in JupyterLab 4.2.0b1 (i.e. lab interface), after observing it in Jupyter Notebook 7.2.0a0. "windowing mode" was set to |
Does that "windowing mode" only affect the lab interface, or also the classic notebook interface? In classic notebook, same behaviour with |
Also reproduced with jupyter lab in |
Same with |
I see that @jtpio did merge two changes on the release candidate branch (in Unfortunately, this issue is extremely frustrating, because it completely prevents the user from navigating a notebook, with the only remedy to re-load the notebook from disk or re-executing the offending cell (if you can still reach there). It is happening erratically with no clear pattern visible except that it seems to be triggered by a cell output - though both "instant" cells and long-running ones. |
Was it? Previously it was more the opposite, with the Otherwise yes Notebook currently still has issues with the So jupyter/notebook#7335 forces to |
I never confirmed |
Maybe I still don't understand well enough how the notebook interface in the lab interface relates to the classic notebook interface. I do prefer the latter, so I only use the lab interface to help debug this issue. My testing on |
Correct. But we should indeed fix Notebook 7 to allow for using the @burnpanck would you be able to try the version of Notebook built by the |
It appears that issue is still present in that
I have made a gist from that particular notebook: https://gist.github.com/burnpanck/490837926c841c00122366137b21dc57 |
@burnpanck Would you be able to create a reproducer which does not require installing packages? If the issue is around cell size + timing + exception traceback display, then it should be possible to create a set of cells with just |
Unfortunately, the issue seems to appear even with cells that execute rather quickly, so I the timing could be a matter of milliseconds... I have no clue how I would transform that failing example above (or any other for that matter) into a series of sleep calls which still trigger the issue. I will try, but it may take a few days, we're in the middle of a release. |
Description
Recently, in the standalone Jupyter notebook mode, I started to occasionally observe a scroll glitch.
Scroll.glitch.mov
Reproduce
It is unfortunately unclear what exactly is required to trigger this issue initially.
display.clear_output(wait=True)
, which ultimately fails with an exception.Expected behavior
Normal scroll.
Context
defer
Related issues:
full
-> layout is completely broken in this mode for me (cells expand out of the right of the window due to long lines)The text was updated successfully, but these errors were encountered: