Removing unused Jupyter notebook kernels on Mac

Since I am experimenting with various Python versions 2 vs 3.5 vs 3.6 and packages, e.g. TensorFlow I often end up with conda environments and corresponding Jupyter kernels that I do not use.

Removing Kernels


$ ls -alt ~/Library/Jupyter/kernels/
total 0
drwx------  6 uki  staff  192 Oct 23 07:45 ../
drwxr-xr-x  5 uki  staff  160 Oct 23 07:43 ./
drwxr-xr-x  5 uki  staff  160 Oct 23 07:43 py27/
drwxr-xr-x  5 uki  staff  160 Sep 30 19:59 python2/

drwxr-xr-x  3 uki  staff   96 Jan 23  2018 bash/

$ rm -r ~/Library/Jupyter/kernels/python2/

See my post on:

Installing Jupyter kernels to match Conda environments


https://ukidlucas.blogspot.com/2018/10/ipykernel.html

No comments:

Post a Comment