In this simple tutorial you are going to learn how to install the classic version of Jupyter Notebook on Ubuntu 20.04.
For this tutorial you will need to make sure that you have Python 3 installed.
Want to watch the video tutorial instead?
Note: This tutorial should also work if you are using Ubuntu 18.04 if you have Python 3 installed.
You can check this by opening up a terminal and typing
If you are using Python 3 then you should already have pip installed.
You can update pip by running this command:
python -m pip install -U pip
Now we are ready to install the classic version of jupyter notebook.
In your terminal enter the following pip command:
pip3 install notebook
Before you run the server you might want to create a new directory to hold the files you will be using inside of jupyter.
Go back to the command line in your terminal.
mkdir jupyter-folder cd jupyter-folder
You might want to create a readme file as well.
Now launch the jupyter notebook server in your terminal.
You can close the server by hitting
ctrl + c and then confirming
y you want to quit in the terminal.
Creating a virtual environment for your jupyter notebook folder:
Run the following command:
python3 -m venv virtual
Now run the command:
You can exit the virtual environment by entering the
Creating a jupyter notebook kernel linked to your virtual environment.
pip3 install ipykernel python3 -m ipykernel install --user --name=virtual
Now run jupyter notebook again.