-
Notifications
You must be signed in to change notification settings - Fork 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
Running cells is broken / cells execute in wrong order #4090
Comments
I found a conda environment that I created a few months ago and the problem does not happen there. So I tried downgrading single packages until the bug disappeared - it looks like the package ipykernel is responsible for the bug. The problem happens with ipykernel 5.0.0, but does not happen with 4.8.2 (that was my previously installed version). ipykernel 4.10.0 also does not have this bug.. looks like it was introduced somewhere between 4.10.0 and 5.0.0. |
Upgrading ipykernel to version 5.1.0 solved this problem for me. |
I reinstalled ipykernal, but now a kernal does not load. with the following issue:
|
I just did the following: A) Clean reinstall of Anaconda3-5.3.0 (python 3.7) on my Windows 10 desktop
I did not get any errors and the notebook did not skip cells upon execution. If reinstall is not a problem, could you try this out ? Otherwise, make a new environment and try steps (3?), 4 and 5 from it |
I have tried at least 5 clean Anaconda re-installs on my windows desktop and each time the skip cell problem in Jupyter notebooks was fixed by upgrading ipykernel. However, I suspect that something else may be wrong. I have an open issues thread related to a post-ipykernel upgrade problem. |
The exact same problem is still there for me with ipykernel 5.1.2 Additionnal remarks for me:
On my computer it happens if my import take more time than usual to run |
Same problem is still there for me with ipykernel 6.25.2 on jupyterlab 4.0.6. Selection of first 12 cells and "run selected" leads to a cell skip in cell 3. Using: |
Since I upgraded Jupyter to 5.7.0 a few days ago I noticed the following several times both at work and at home:
When I click "Kernel" -> "Restart & Run All" some cells are skipped and the following cells fail execution (because they depend on results of the previous cells).
Also executing multiple cells with Shift-Enter also produces the same problem.
Here's an example:
As you can see the cell with
e = d + 1
was skipped and the following cell withf = e + 1
failed because it depends one
.The result is not deterministic - when I repeat it, the problem either happens at another cell or (most often) not at all.. you might have to try quite a few times.
Sometimes it also skips more than one cell before failing. (Maybe it's not skipping cells - but executing them in the wrong order?)
The text was updated successfully, but these errors were encountered: