-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Busy indicator shows wrong status #13635
Comments
Thanks @davidbrochart for reporting it. The indicator makes an assumption that if two cells are executed consequently and the delay between them is under 1000ms, they are counted as a group of two execution so that you will see a half-filled circle. jupyterlab/packages/notebook/src/executionindicator.tsx Lines 454 to 456 in 60ddcbf
I don't know if 1000ms is too big, we might lower it down to 500ms. |
This seems very arbitrary and error prone. Shouldn't the kernel status on IOPub be used instead? |
I count one second after the kernel idle message of the IOPub channel. If we don't have this delay when you manually execute multiple simple cells, the execution status is reset after each cell and we can't count the total cells scheduled. |
Ah I see, then 1 second is too much IMO, it should be something like 100 ms. |
Description
When running a single cell, the busy indicator sometimes shows a half-filled circle.
busy.mp4
Reproduce
mamba install jupyterlab
pip freeze
showsjupyterlab 3.5.2
andipykernel 6.19.4
time.sleep(1)
Expected behavior
The busy indicator should show a filled circle when only one cell is executing.
Context
The text was updated successfully, but these errors were encountered: