Upgrading Jupyter Notebook#
Upgrading Jupyter Notebook using Anaconda#
If using Anaconda, update Jupyter using conda :
See Run the Notebook for running the Jupyter Notebook.
Upgrading IPython Notebook to Jupyter Notebook#
The Jupyter Notebook used to be called the IPython Notebook. If you are running an older version of the IPython Notebook (version 3 or earlier) you can use the following to upgrade to the latest version of the Jupyter Notebook.
If using Anaconda, update Jupyter using conda :
See Run the Notebook for running the Jupyter Notebook.
The migrating document has additional information about migrating from IPython 3 to Jupyter.
Changing the Python version Jupyter uses
Sometimes you want to change the version of Python that Jupyter is using! Often this is because you want to make your command-line python command match the version that Jupyter is using.
Jupyter doesn’t use the PATH variable to figure out which Python to use, it uses specific settings called kernels. As a result, if you upgrade or change Pythons on the command line, Jupyter might still be stuck in the past!
You can read more about how this causes libraries to go missing, but we’re just going to jump into changing it here. Our process is only three quick steps:
- Confirm our Python version
- Install the ipykernel package for managing Jupyter settings
- Use ipykernel to change our default Jupyter
This kernel or kernelspec is the settings file that Jupyter uses to figure out what Python it should point to. Now it’s updated, so everything should work great! Shut down your Jupyter notebook server, start a new one, and you’ll be good to go.
When I say “shut down your Jupyter notebook server,” I don’t mean close your notebook tab: that isn’t enough! You need to actually turn off and restart the entire Jupyter server. Use Ctrl+C to shut it down from the command line.
Double-checking the kernel installed correctly
If we’re nosy or suspicious, we could actually look at the kernel’s details. Read the last line of the output to see where the kernelspec (kernel specification) lives:
The settings are stored in a file called kernel.json inside of this folder. To check up on the details, we can use the cat command.
The important part here is /Users/soma/.pyenv/versions/3.10.0/bin/python — that’s the exact Python file that Jupyter will be running!
Loading.

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Become a contributor
You get paid; we donate to tech nonprofits.
Featured on Community
DigitalOcean Products
Welcome to the developer cloud
DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.
Get started for free
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Change Python Version for Jupyter Notebook
2. you download the latest version of Anaconda and then make a Python 3.5 environment.
To create the new environment for Python 3.6, in your Terminal window or an Anaconda Prompt, run:
3) Uninstall Anaconda and install older version of Anaconda https://repo.continuum.io/archive/ (download the most recent Anaconda that included Python 3.5 by default, Anaconda 4.2.0)