I'm using Jupyter notebook 4.0.6 on OSX El Capitan.
Once in a while I'll start running a notebook and the cell will simply hang, with a [ * ]
next to it and no output.
When this happens, I find that only killing Jupyter at the command line and restarting it solves the problem. Relaunching the kernel doesn't help.
Has anyone else had this problem? If so, any tips?
Try 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.
You can force the termination by deleting the cell. I copy the code, delete the cell, create a new cell, paste, and execute again.
You can restart your Jupyter Kernel by simply clicking Kernel > Restart from the Jupyter menu. Note: This will reset your notebook and remove all variables or methods you've defined! Sometimes you'll notice that your notebook is still hanging after you've restart the kernel. If this occurs try refreshing your browser.
That usually happens when I edit the program after leaving the output running mid-way and then run it again. This will cause the kernel to get struck. I generally just restart the kernel and then it works fine.
To restart the kernel,press Esc
to enter command mode, then press 0 0
(zero) to restart the kernel, now your program will run.
To avoid this in the future, remember to complete the execution of your program before editing the code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With