Close Menu
  • Home
  • Web Technologies
    • HTML/CSS
    • JavaScript
    • JQuery
    • Django
    • WordPress
  • Programming
    • Python
    • PHP
  • Linux
    • Ubuntu
Facebook X (Twitter) Instagram
  • About Us
  • Contact Us
  • Write for Us
  • AIO SEO TOLLS
Facebook X (Twitter) Instagram Pinterest VKontakte
mr.wixXsid
  • Home
  • Web Technologies
    • HTML/CSS
    • JavaScript
    • JQuery
    • Django
    • WordPress
  • Programming
    • Python
    • PHP
  • Linux
    • Ubuntu
mr.wixXsid
Home » How to Install Jupyter Notebook on Ubuntu 20.04 LTS
Ubuntu

How to Install Jupyter Notebook on Ubuntu 20.04 LTS

mrwixxsidBy mrwixxsidSeptember 12, 2022Updated:September 12, 2022No Comments3 Mins Read
Facebook Twitter Pinterest Tumblr Reddit WhatsApp Email
How to Install Jupyter Notebook on Ubuntu
Share
Facebook Twitter LinkedIn Pinterest Email

How to install Jupyter Notebook on Ubuntu 18.04/ 20.04 to practice Python, Julia, R, Haskell, and Ruby. This article will guide you on how to install Jupyter Notebook on Ubuntu 20.04 LTS. Here we show you very simple ways to install Jupyter on Ubuntu 20.04 LTS or other Ubuntu-based Linux Distributions. You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint, Elementary OS, Zorin OS, and POP! OS.

Jupyter is an open-source web application, and it is used primarily for working with data, statistical modeling, and machine learning. It lets you create and share interactive code, visualizations, etc. Jupyter is a next-generation notebook interface, and it can be used with several programming languages, like Python, R, Haskell, Julia, Ruby, and Scala.

How To Install Node.js on Ubuntu 20.04

Install Jupyter Notebook on Ubuntu

The following steps are to install Jupyter Notebook on your Ubuntu systems.

Step 1. Update and Upgrade Packages

Run the following command to update available packages and their versions. And the upgrade command to install newer versions of the packages.

sudo apt update && sudo apt -y upgrade

Step 2. Install Python virtualenv

We can use Python’s virtual environment to manage our projects. We will install Jupyter into this virtual environment.

Upgrade pip version and install Python virtualenv package by typing:

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

Step 3. Create Python Virtual Environment

After installing virtualenv, let’s start forming our environment. Let’s create a directory in your home directory (or any other location).

mkdir notebook

Now let’s go to the notebook directory and create a Python virtual environment called jupyterenv.

cd notebook
virtualenv jupyterenv

Now we have to activate the virtual environment.

source jupyterenv/bin/activate

Step 4. Install Jupyter Notebook

With your virtual environment active, install Jupyter by the following command.

pip install jupyter

Step 5. Run Jupyter Notebook

Now you have everything you need to run Jupyter Notebook, run Jupyther buy the following command:

jupyter notebook
Install Jupyter Notebook on Ubuntu

How do I run a Jupyter Notebook in Ubuntu?

To launch Jupyter Notebook:

  1. Open your terminal window
  2. Go to your notebook directory or you can simply follow cd notebook command.
  3. Activate virtualenv command: source jupyterenv/bin/activate .
  4. Start Jupyter Notebook command: jupyter notebook
cd notebook
source jupyterenv/bin/activate
jupyter notebook

Step 6. Create Jupyter Application Menu.

Now create a new file called run-jupyter.sh in your Jupter notebook directory:

#!/bin/bash

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

The next step is to go to the /usr/share/applications directory and create a file named jupyter.desktop with the code below to create an application menu item:

[Desktop Entry]
Name=Jupyter Notebook
Exec=/home/username/notebook/run-jupyter.sh
Type=Application
Terminal=true

Congratulations! You have successfully installed Jupyter Notebokon your ubuntu system. Thanks for using this tutorial to install Jupyter Notebook on Ubuntu 20.04 LTS system. For additional help or useful information, we recommend you check the official Jupyter website.

Jupyter Notebook Ubuntu 20.04
Share. Facebook Twitter Pinterest Tumblr Reddit Telegram WhatsApp Email
mrwixxsid
  • Website
  • Facebook
  • X (Twitter)
  • Instagram

I am a Full-Stack Web Developer & Security Analyst from Bangladesh. I have built web/online applications on various Open Source Stacks and love information security testing.

Related Posts

How to Change the Root Password in Ubuntu (and Why You Should Do It Now!)

October 4, 2024

How to install SQLite on Ubuntu

December 5, 2023

How to Install OpenVAS on Ubuntu: A Step-by-Step Guide

October 23, 2023

Installing FFmpeg on Ubuntu: Step by Step

October 23, 2023
Add A Comment
Leave A Reply Cancel Reply

Live Cricket
Live Cricket Updates
Latest Articles

Even Odd number’s in Assembly

April 10, 2025

Summation of Two Numbers in Assembly: Input and Output Explained

April 10, 2025

Resolving “sudo: command not found” in Linux: A Complete Guide

January 3, 2025

How to Change the Root Password in Ubuntu (and Why You Should Do It Now!)

October 4, 2024

Using the Python Pickle Module: A Beginner’s Guide

August 25, 2024
About

Mr.wixXsid is a website that publishes Web technologies, Programming, Linux, and Open-source ERP articles for an aspirant like you and us. We are in-depth research & present valuable content & resources to help the Web professional of all levels.

Latest

Even Odd number’s in Assembly

April 10, 2025

Summation of Two Numbers in Assembly: Input and Output Explained

April 10, 2025
Other sites
  • BLOG
  • SEO TOOL’S
  • All in One Video Downloader
  • SELFISH WORLD
Copyright © 2025 mr.wixXsid. All rights reserved.
  • Privacy Policy
  • Terms of Use
  • Advertise

Type above and press Enter to search. Press Esc to cancel.

Ad Blocker Enabled!
Ad Blocker Enabled!
Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.
x
x