Jupyter notebook not running code. Stuck on In [*]

2020-05-18 05:08发布

My code was running fine before I did not change anything and I ran it again. Now it doesn't return anything not even an error. It is just stuck on "In [*]".

See problem visually here

27条回答
Root(大扎)
2楼-- · 2020-05-18 05:37

I have installed jupyter with command pip3 install jupyter and have the same problem. when instead I used the command pip3 install jupyter ipython the problem was fixed.

查看更多
Bombasti
3楼-- · 2020-05-18 05:37

Sometimes the extensions also create a problem. I was using a dark mode extension(Night Eye) in Microsoft edge. So kernel was busy. When I uninstalled it. It working fine.

查看更多
霸刀☆藐视天下
4楼-- · 2020-05-18 05:37

I fixed this issue

just only type this command: jupyter notebook --no-browser

It will show you the path then copy and paste on Jupyter Notebook browser

The code will be executed in IPython Notebook Python 3

查看更多
Lonely孤独者°
5楼-- · 2020-05-18 05:38

What I did was to quit the Notebook, and I started all over again. That is the proper solution. Restarting the Kernel really did not really help. But quitting did so try quitting and start again

查看更多
冷血范
6楼-- · 2020-05-18 05:40

The answers that state that your kernel is still executing the code in the cell are correct. You can see that by the small circle in the top right. If it is filled with a black/grey color, then it means it is still running.

I just want to add that I experienced a problem in JupyterHub where the code in the cell would just not execute. I stopped and restarted the kernel, shutdown and reloaded the notebook, but it still did not run.

What worked for me was literally copy pasting the same code to a new cell and deleting the old one. It then ran from the new cell.

查看更多
ゆ 、 Hurt°
7楼-- · 2020-05-18 05:40

From my experience, it usually means one of the prior cells is keeping the kernel busy. When you hit run on the intended cell and [*] appears, from there, try to scroll up to the prior cell which is also advertising a [*]. Then goto kernel->interrupt, and lastly, try running the cell again.

查看更多
登录 后发表回答