4

I have currently 3 environments: root(base), aind-dl, py2env

So, for easy working, I've installed the conda extensions: nb_conda, nb_conda_kernels

and when I run $: jupyter notebook the nb_conda_kernel detects 5 kernels which are redundant and in the listing. Some kernels gives an error of not existing.

How do I remove the redundant kernels?

Envs i have:

Envs

redundant kernels:

Redundant kernels

prusswan
  • 6,853
  • 4
  • 40
  • 61
Y. Aakash
  • 41
  • 1
  • 4
  • Can you add the output of `jupyter kernelspec list`? – darthbith Mar 29 '18 at 13:39
  • https://imgur.com/A2hMyIO these are env i have. and https://imgur.com/Fk2FxkN these are 2 redundant kernel detected by nb_conda_kernels Anaconda, conda root, and default belongs to same kernel. – Y. Aakash Mar 30 '18 at 04:58
  • Please do not post output from the terminal in images, and please edit your post to include the content. – darthbith Mar 30 '18 at 14:35

2 Answers2

6

Normally, you can use jupyter kernelspec remove <env_name> to remove a specific kernel.

In your case, your conda root and default seem to be leftovers from an Anaconda-Python 2 installation. The related discussion for this issue may be helpful. The idea is to disable/remove nb_conda. I have yet to run into this issue with Anaconda3 since I manage multiple kernels manually using the instructions here.

sophros
  • 14,672
  • 11
  • 46
  • 75
prusswan
  • 6,853
  • 4
  • 40
  • 61
0

You can also do this:

jupyter kernelspec uninstall redundant_kernel
zabidima
  • 21
  • 5