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


As an Amazon Associate I earn from qualifying purchases.

My favorite quotations..


“A man should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.”  by Robert A. Heinlein

"We are but habits and memories we chose to carry along." ~ Uki D. Lucas


Popular Recent Articles