How to remove base python3 kernel

Hey, I’m trying to remove the python3 base kernel but it’s impossible

My kernels are:

$ jupyter kernelspec list
Available kernels:
  python3              /opt/nbt/venvs/ipykernel-default/share/jupyter/kernels/python3
  ipykernel-default    /usr/local/share/jupyter/kernels/ipykernel-default
  ipykernel-ia         /usr/local/share/jupyter/kernels/ipykernel-ia
  sparkkernel          /usr/local/share/jupyter/kernels/sparkkernel

when I try to remove the kernel using the following command:

$ jupyter kernelspec remove python3

the kernel is not removed but the location changes. (jupyter kernelspec uninstall python3 doesn’t work either)

$jupyter kernelspec list
Available kernels:
  python3              /opt/nbt/venvs/ipykernel-default/lib/python3.9/site-packages/ipykernel/resources
  ipykernel-default    /usr/local/share/jupyter/kernels/ipykernel-default
  ipykernel-ia         /usr/local/share/jupyter/kernels/ipykernel-ia
  sparkkernel          /usr/local/share/jupyter/kernels/sparkkernel

I think that the issue is that both are pointing to ipykernel-default but I’m not sure why this is the case for python3 kernel.

Do you know what could be the issue? I’m using the latest versions for everything (including Notebook 7)

thanks

Actually removing the offending folders listed by those commands would probably work.

1 Like