-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Updates to Notebook Cell output causes abrupt flashing/flickering in notebooks and interactive window #132143
Comments
Also reported here #132143 Old behavior (no flashes, in webview interactive & webview notebooks) New behavior |
@DonJayamanne @joyceerhl when you transfer issues, would you mind assigning them to the right person if you know who that is? |
I can still repro this with the same code for the progress bar. |
The progress bar might be a different case, @DonJayamanne can you share the code? |
Install dependencies
Cell 2 from fastprogress.fastprogress import master_bar, progress_bar
from time import sleep
mb = master_bar(range(10))
for i in mb:
for j in progress_bar(range(100), parent=mb):
sleep(0.01)
mb.child.comment = f'second bar stat'
mb.main_bar.comment = f'first bar stat'
mb.write(f'Finished loop {i}.') |
Spent the whole afternoon digging into this and finally found the root cause: the flash is caused by The |
@rebornix Any progress on this issue? Progress bars like that of @DonJayamanne cause a strobe-like flickering due to constant redraws. |
Issue mentioned on stackoverflow: https://stackoverflow.com/questions/69037124/vscode-version-1-60-0-changed-interactive-view-to-epilepsy-old-or-web-view-av |
Affects me as well. |
Verifier, please test when you are rerunning cells with outputs, the cell doesn't shrink too early, you can test this with following code
|
python -m pip install livelossplot
The visual effect is exacerbated for interactive window because auto scrolling is done in VS Code core, but the issue is also present for notebooks (abrupt flashing as the plot disappears and gets recreated)
In classic Jupyter there's no such flashing. The output updates are smooth:
The text was updated successfully, but these errors were encountered: