I've recently stopped using macports
so the kernel.json files I had for various IPython kernels are out of date. I have renamed ~/.ipython
and removed ~/.jupyter
but kernels launched are failing to start with file not found
errors.
More tellingly, when I run jupyter-kernelspec list
it still lists all the old kernels I had set up. Where is it getting this information from and what do I need to do to refresh/remove its cache?
Once you have your kernel working in a terminal, test your kernel from a Jupyter Notebook. To load an updated list of kernels, scroll down in the “Kernel” menu and select “Refresh kernel list”. Your kernel should show up with the given display_name !
To deactivate the virtual environment, you can run deactivate . To delete the virtual environment you just need to remove the folder with the virtual environment (e.g. rm -r myenv ).
To shut down a kernel, go to the associated notebook and click on menu File -> Close and Halt. Alternatively, the Notebook Dashboard has a tab named Running that shows all the running notebooks (i.e. kernels) and allows shutting them down (by clicking on a Shutdown button).
After a brute force search, Jupyter stores kernel info for OS X in /Users/${USER}/Library/Jupyter/kernels
. This list got copied across from my .ipython/kernels
list hence renaming it made no difference.
Removing /Users/${USER}/Library/Jupyter/kernels
fixes the issue.
This is the reference I was looking for: http://jupyter-client.readthedocs.org/en/latest/kernels.html#kernelspecs
This is an issue in Linux also if anyone else runs into it. Check the contents of: ~/.local/share/jupyter/kernels/
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