I’ve noticed that when I run one cell in a Jupyter notebook, the progress indicator says I’m executing two cells when I’m only actually executing one. If I restart the kernal and run all cells, even though there are a total of 22 cells, the notebook says it’s running 46 cells.
This started happening recently. I researched the problem and noticed that people were having an issue with the number count on the left side of each cell skipping every other number. This is not happening to me – those numbers are correctly sequential. It just seems the notebook thinks it has more cells to execute and continues to be ‘busy’ long after my actual cells have run.
I am newer to Jupyter and Python fyi.
I’ve tried restarting the kernal and restarting jupyter lab. I tried running a cell in a brand new notebook, when I run one cell, the notebook says it’s executing two of them. It looks to be happening in other kernals as well.
kdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
11
Steps on how I fixed the issue.
- Ran Jupyter Lab in safe mode. My notebook ran exactly the amount of cells it was supposed to.
jupyter lab --safe-mode
- Listed all my labextensions and disabled them one at a time, restarting the notebook after each to isolate the culprit.
jupyter labextension list
jupyter labextension disable <extension-name>
- After some trial and error, I discovered that it’s the jupyterlab_variableinspector so I ran the command
jupyter labextension disable @lckr/jupyterlab_variableinspector
, restarted my notebook and it ran normally.
kdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1