Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter notebook cell stays busy (*) even after the execution is complete

The Jupyter/IPython notebook started acting a little strange for my Ubuntu (14.04) computer.

Usually, a cell in jupyter notebook becomes busy with an asterisk (*) symbol next to it when it is executed and as soon as the execution is busy, the execution sequence number is displayed to denote successful completion of whatever task which was in it.

Now, whenever I execute a cell, it remains busy with an asterisk next to it even after the execution is complete. Then, any other cell which is given for execution also gets an asterisk but with no progress. Only when the interrupt command is given the execution sequence number shows up and I can continue to run other cells (in the same odd way).

What is causing this odd behaviour and how to solve it? It didn't happen to me before over the last two years of use -- neither in Ubuntu or Mac.

like image 435
Ébe Isaac Avatar asked Sep 26 '17 10:09

Ébe Isaac


People also ask

What does * mean in Jupyter notebook cell?

When a cell is displayed as "busy" with an asterisk, it can mean one of several things: The cell is currently executing. An "execute" command was sent to the cell, but another cell is currently executing. The cell will execute when its turn comes.

Why is my cell in Jupyter notebook not running?

Jupyter doesn't load or doesn't work in the browserTry disabling any browser extensions and/or any Jupyter extensions you have installed. Some internet security software can interfere with Jupyter. If you have security software, try turning it off temporarily, and look in the settings for a more long-term solution.

How do you stop an infinite loop in Jupyter notebook?

If you desperately need to stop something that is running in iPython Notebook and you started iPython Notebook from a terminal, you can hit CTRL+C twice in that terminal to interrupt the entire iPython Notebook server.

How do you force stop a cell in Jupyter notebook?

Stopping a process or restarting a Jupyter Notebook To interrupt a cell execution, you can click the ■ “stop” button in the ribbon above the notebook, or select “Interrupt Kernel” from the Kernel menue.


1 Answers

The cause seems to be the variable explorer notebook extension. The Jupyter notebook works fine when this is disabled.

I've recently installed jupyter_contrib_nbextensions and started to use the variable explorer in it. However, it seems like this is what is causing the problem. I've turned it off using the nbextensions tab in the home tree. Now, the cell executions are back to normal.

like image 145
Ébe Isaac Avatar answered Sep 28 '22 15:09

Ébe Isaac