# How to Install Jupyter Notebook on Ubuntu 22.04 | 20.04

**URL:** https://www.compsmag.com/blogs/how-to-install-jupyter-notebook-on-ubuntu-22-04-20-04/
**Author:** Ayushi Chauhan
**Published:** 2022-04-25
**Updated:** 2022-04-25
**Categories:** Blogs
**Tags:** Blogs Daily, Computer Guides, guiderobert, Guides and Tutorials, guiding12, How To Guide, How To Guides, Linux Guides, Software tips and tutorials, Tips, Tricks
**Reading Time:** 3 min

---

This tip is about the how to Install Jupyter Notebook on Ubuntu 22.04 | 20.04. So read this free guide, How to Install Jupyter Notebook on Ubuntu 22.04 | 20.04 step by step. If you have query related to same article you may contact us.

## How to Install Jupyter Notebook on Ubuntu 22.04 | 20.04 - Guide

Formerly known as iPython Notebook, Jupyter Notebook is an open source web application that allows users to run code interactively in a web browser, along with some views.  Jupyter Notebook is primarily used for data science, which includes performing operations like data visualization, statistical modeling, numerical simulation, data cleansing, machine learning, and more.  The Jupyter Project is a non-profit initiative that aims to develop and provide open source software and open standards for interactive work.  One of the project's most famous products is the Jupyter Notebook.  It is software for sharing and creating interactive spreadsheets that work on the client-server principle.  In a Jupyter notebook, numbers, text, graphics and executable code can be combined and made available to users.

The latest Python version is 3 and can be installed from the official Ubuntu 22.02 or 20.04 repository.  Because we need a Python environment to install and use Jupyter Notebook.  So install it first.  Jupyter is flexible and extensible and can support Python, Julia, Haskell and many other programming languages.  Many other plugins can be added to existing plugins to add more functionality and are compatible to use.  This guide it's about how to install Jupyter on Ubuntu 20.04.

## requirements

to accomplish this tutorial we need Ubuntu or your Linux based systems with a non-root sudo login user and Python environment.

## Run Ubuntu 22.04/20.04 system update

Before proceeding, first run the system update which will rebuild the APT package manager cache.

sudo apt update && sudo apt upgrade

## Install Python3 and PIP3

The latest Python version is version 3, available for installation from the official Ubuntu 22.02 or 20.04 repository.  Because we need a Python environment to install and use Jupyter Notebook.  So first install it.

Also, we need a PIP package manager to install Jupyter Notebook, so get that too.

sudo apt install python3-pip

## Update PIP and install virtualenv

Once the commands given above are completed, both Python3 and PIP3 will be on your system.  Now, let's first update the default PIP version of our system to the latest one.

sudo pip3 install –update pip

After that also install the virtualenv package, a tool to create isolated virtual python environments.

sudo pip3 install virtualenv

## Create a Python virtual environment for Jupyter

Instead of installing Jupyter globally, let's create an isolated Python environment for it.  So here we are creating our project directory called – demo, you can name the folder whatever you want.

Create a new virtual environment inside the folder.

Let's give it a name-notebookenv, of course, you can name it whatever you want.

Now activate and load the created python environment for your current shell.

notebookenv/bin/activate font

## Final note

I hope you like the guide How to Install Jupyter Notebook on Ubuntu 22.04 | 20.04. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.

---

*End of Article*