Cannot remove an old kernel from Jupyter Notebook

For years when I installed a new version of Python or Julia, I removed the old kernel with the following command, in Anaconda prompt or from the corresponding environment: jupyter kernelspec remove kernel_name_and_version. Now this command cannot find that kernel although it is displayed when the notebook is launched and also I can find it on my Win 11 in …/AppData/Roaming/jupyter/kernels. How do I get rid of its display in Jupyter notebook? Thanks!!

You can delete the folder of the kernel you want to get rid of from the kernels directory.

2 Likes