Install Jupyter Notebook on Ubuntu

less than 1 minute read

We’re going to go throught the steps to get Jupyter Notebook running on Ubuntu 20.04.


I’m using Ubuntu 20.04 server, I have XFCE installed.

What we’ll cover:

  1. Setup Python
  2. Create Python Virtual Environment
  3. Install Jupyter
  4. Run Jupyter Notebook
  5. Create Jupyter in application menu

1. Setup Python

sudo apt-get update && sudo apt-get upgrade
sudo apt install python3-pip python3-dev

Upgrade pip and install the package by typing:

sudo -H pip3 install --upgrade pip
sudo -H pip3 install virtualenv

2. Create Python Virtual Environment

Create a directory to put our virtual environment

mkdir code

Create Python Virtual Environment

cd code
virtualenv jupyterenvironment 

Load created Virtual Environment

source jupyterenvironment/bin/activate 

3. Install Jupyter

pip install jupyter

Install nbconvert

pip install nbconvert

Run Jupyter Notebook

jupyter notebook

Install pandoc & Latex to allow for PDF export

sudo apt-get install pandoc
sudo apt-get install texlive-xetex texlive-fonts-recommended

5. Create Jupyter in application menu

Create script to run jupyter

Create a file called


source /home/username/jupyterenvironment/bin/activate
jupyter notebook

Create applications menu item

Create a file in /usr/share/applications called jupyter.desktop

[Desktop Entry]
Name=Jupyter Notebook