Linked Questions

Popular Questions

python3 venv is not included in jupyter kernels

Asked by At

I created a new venv in python3 as follows:

python3 -m virtualenv venv3

I then activate venv3 and launch jupyter notebook. However, I only see the following options in jupyter "New" dropdown:

Notebooks

Python2

venv1

venv2

venv1 and venv2 are python3 virtualenv i had created before and they show python3 in the "New" dropdown when I activate them and launch jupyter:

Notebooks

Python3

venv1

venv2

I can not figure out why my new venv3 and python3 are not a part of the kernels when I run jupyter from that virtualenv.

Here is the list of kernels I get back:

jupyter kernelspec list
python2 /Users/me/anaconda2/lib/python2.7/site-packages/ipykernel/resources
venv1   /usr/local/share/jupyter/kernels/venv1
venv2    /usr/local/share/jupyter/kernels/venv2

It does not include venv3. I then tried the following:

jupyter kernelspec install venv3

After the above command, I see the new venv3 directory in /usr/local/share/jupyter/kernels:

venv1

venv2

venv3

but jupyter kernelspec list command still does not reflect the new kernel installation.

Anyone can point me to where to look for this and what might be the problem?

Related Questions