Chiel
Chiel

Reputation: 682

Jupyter Notebook kernel not upgrading

I currently use python 3.7.4. I am trying to upgrade to python 3.8 by using a new environment. The following steps were executed in Anaconda prompt:

conda install ipykernel
conda create -n py38 python=3.8
Activate py38
pip install ipykernel
python -m ipykernel install --name py38

Then, I restarted Anaconda, and ran "jupyter notebook". In the top right corner within Jupyter notebook, the kernel shows "py38". However, when running the following code :

import sys
print(sys.version)

It returns:

3.7.4 (default, Aug  9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]

Upvotes: 0

Views: 1383

Answers (1)

user9940344
user9940344

Reputation: 584

Run conda install nb_conda from the anaconda prompt in your py38 environment.

Launch a notebook with jupyter notebook in your activate conda environment in this case py38.

Then create a new notebook and you can select the environment you want in this case py38.

After you have done this try running:

import sys
print(sys.version)

and see the output.

Upvotes: 1

Related Questions