Open gdebrun2 opened 6 months ago
I can't repro the behavior, although there is a stutter in the scroll action when that large second cell comes into view. I would suspect that's the actual cause - in that first video, it seems to jump down every time you scroll past the Energy Trace header, which is just below the big cell. Does this still occur if you collapse that cell input? Or have you seen this happen in notebooks without a large cell like that?
@amunger This behavior occurs in notebooks with no particularly large cells as well. It happens in almost every notebook I'm working in. I'll try to provide a screen cap of it happening nowhere near a large cell. I've experienced this issue by just having a small cell with a traceback output with very little else in the notebook. I should have mentioned previously that I've completely uninstalled vscode and conda to try and fix this to no avail.
The issue is sporadic. It likely won't reproduce immediately on command, but it almost always occurs for me when editing a notebook for an extended period of time.
edit: A more specific scenario occurs when a cell, usually near the end of the notebook but not always, has a traceback output and the output box expands downwards to a ridiculously long size and scrolling will be stuck at this output. This is hard to explain without seeing it, so I'll try to reproduce this.
@amunger Any update on this? Or advice how to fix it? I would really like to come back to vscode
I haven't been able to reproduce this myself, and I was hoping to see that very long output box you mentioned - Is that an output area that is longer than the stacktrace that it contains?
While scrolling in a .ipynb in vscode, scrolling often breaks and attempts to suck the user back from the new location to a particular cell output. Anecdotally, the kind of outputs that seem to trigger this behavior are matplotlib plots and python error tracebacks (especially tracebacks). I have found no way to halt this behavior and it is widespread across notebooks. After restarting the session, the issue often appears again. Disabling all extensions except python, Jupyter, and Jupyter renderers does not fix the issue. Sometimes the issue will fix itself in a notebook and work for some period before returning. The problem output does not seem to have any significance. I have seen the issue get caught on different cell outputs in the same notebook. This issue does not occur in Jupyterlab or PyCharm. The rendering issue in #14459 may be related.
Version info:
macOS 14.4
M1 Max CPU/GPU with 64 GB ram
VsCode info:
Python extension version v2024.2.1
Jupyter extension version v2024.2.0
Jupyter renderer version v1.0.17
Python 3.12
Packages:
Problem has persisted through various versions for all of the above and is reproducible with a barebones evironment
Vscode json settings:
Logs Context:
Issue is reoccurring throughout multiple notebooks with fewer outputs and code cells
Jupyter Logs:
Steps to reproduce:
Use vscode to edit literally any .ipynb with a traceback or plot output for more than a few minutes. Provided notebook produces the issue seen in the below videos at some point. The issue may not appear immediately.
Zipped notebook:
ising.ipynb.zip
Slow scrolling:
https://github.com/microsoft/vscode-jupyter/assets/60619834/6f7b6fcb-4914-4142-98bb-3e8d6710b82f
Fast scrolling:
https://github.com/microsoft/vscode-jupyter/assets/60619834/60a79364-4103-4311-ac8d-2d2011363374