- How to install Jupyter Notebook in Linux?
- Installing Jupyter Notebook using Anaconda:
- Installing Jupyter Notebook using pip:
- Anaconda and Jupyter Notebook Install Instructions — Ubuntu & Windows+WSL
- Start Jupyter Notebook
- Installing the classic Jupyter Notebook interface#
- Prerequisite: Python#
- Installing Jupyter using Anaconda and conda#
- Alternative for experienced Python users: Installing Jupyter with pip#
- Installing the classic Jupyter Notebook interface#
- Prerequisite: Python#
- Installing Jupyter using Anaconda and conda#
- Alternative for experienced Python users: Installing Jupyter with pip#
How to install Jupyter Notebook in Linux?
Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. Uses include data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.
Jupyter has support for over 40 different programming languages and Python is one of them. Python is a requirement (Python 3.3 or greater, or Python 2.7) for installing the Jupyter Notebook itself.
Jupyter Notebook can be installed by using either of the two ways described below:
- Using Anaconda:
Install Python and Jupyter using the Anaconda Distribution, which includes Python, the Jupyter Notebook, and other commonly used packages for scientific computing and data science. To install Anaconda, go through How to install Anaconda on Linux? and follow the instructions provided. - Using PIP:
Install Jupyter using the PIP package manager used to install and manage software packages/libraries written in Python. To install pip, go through How to install PIP in Linux? and follow the instructions provided.
Installing Jupyter Notebook using Anaconda:
Anaconda is an open-source software that contains Jupyter, spyder, etc that are used for large data processing, data analytics, heavy scientific computing. Anaconda works for R and python programming language. Spyder(sub-application of Anaconda) is used for python. Opencv for python will work in spyder. Package versions are managed by the package management system called conda.
To install Jupyter using Anaconda, just go through the following instructions:
- Launch Anaconda Navigator:
- Click on the Install Jupyter Notebook Button:
- Beginning the Installation:
- Loading Packages:
- Finished Installation:
Launching Jupyter:
Installing Jupyter Notebook using pip:
PIP is a package management system used to install and manage software packages/libraries written in Python. These files are stored in a large “on-line repository” termed as Python Package Index (PyPI).
pip uses PyPI as the default source for packages and their dependencies.
To install Jupyter using pip, we need to first check if pip is updated in our system. Use the following command to update pip:
python3 -m pip install --upgrade pip
After updating the pip version, follow the instructions provided below to install Jupyter:
Launching Jupyter:
Use the following command to launch Jupyter using command-line:
Anaconda and Jupyter Notebook Install Instructions — Ubuntu & Windows+WSL
Windows+WSL: Select the Windows Terminal from the Windows Start menu or Search Bar.
Ubuntu: Go to “Show Applications” and Select the Terminal.
2. Type the commands in red to go to the Downloads directory and download Anaconda3 2022.05. Anaconda may take a few minutes to download.
Windows+WSL: In the following, please replace username with your appropriate Windows user.
username@Desktop:~$ cd /mnt/c/users/username/Downloads
username@Desktop:/mnt/c/users/username/Downloads$ wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh
username@ubuntu:~$ cd Downloads
username@ubuntu:~/Downloads$ wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh
3. Type the command in red to install Anaconda.
4. Press Enter to read the license agreement. Use Space to continue to the next page.
Welcome to Anaconda3 2022.05
In order to continue the installation process, please review the license agreement.
Please, press ENTER to continue
5. Type yes to accept the license terms.
6. Press Enter to install Anaconda to the default location.
Anaconda will now be installed into this location:
/home/username/anaconda3
— Press ENTER to confirm the location
— Press CTRL-C to abort the installation
— Or specify an different location below
[/home/username/anaconda3] >>>
7. Type yes to have Anaconda update your PATH.
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>> yes
==> For changes to take effect, close and re-open your current shell.
If you’d prefer that conda’s base environment not be activated on startup, set the auto_activate_base parameter to false:
conda config —set auto_activate_base false
Thank you for installing Anaconda!
8. Open a new Terminal window.
9. Type the command in red to verify Anaconda was installed.
10. Type the command in red to update Anaconda.
Start Jupyter Notebook
1. Type the command in red to start Jupyter Notebook.
Installing the classic Jupyter Notebook interface#
This section includes instructions on how to get started with Jupyter Notebook. But there are multiple Jupyter user interfaces one can use, based on their needs. Please checkout the list and links below for additional information and instructions about how to get started with each of them.
This information explains how to install the Jupyter Notebook and the IPython kernel.
Prerequisite: Python#
While Jupyter runs code in many programming languages, Python is a requirement for installing the Jupyter Notebook. The Python version required differs between Jupyter Notebook releases (e.g. Python 3.6+ for Notebook v6.3, and Python 3.7+ for Notebook v7) .
We recommend using the Anaconda distribution to install Python and Jupyter. We’ll go through its installation in the next section.
Installing Jupyter using Anaconda and conda#
For new users, we highly recommend installing Anaconda. Anaconda conveniently installs Python, the Jupyter Notebook, and other commonly used packages for scientific computing and data science.
Use the following installation steps:
- Download Anaconda. We recommend downloading Anaconda’s latest Python 3 version (currently Python 3.9).
- Install the version of Anaconda which you downloaded, following the instructions on the download page.
- Congratulations, you have installed Jupyter Notebook. To run the notebook:
Alternative for experienced Python users: Installing Jupyter with pip#
Jupyter installation requires Python 3.3 or greater, or Python 2.7. IPython 1.x, which included the parts that later became Jupyter, was the last version to support Python 3.2 and 2.6.
As an existing Python user, you may wish to install Jupyter using Python’s package manager, pip , instead of Anaconda.
First, ensure that you have the latest pip; older versions may have trouble with some dependencies:
Then install the Jupyter Notebook using:
(Use pip if using legacy Python 2.)
Congratulations. You have installed Jupyter Notebook. See Running the Notebook for more details.
Upgrading Jupyter Notebook
Installing the classic Jupyter Notebook interface#
This section includes instructions on how to get started with Jupyter Notebook. But there are multiple Jupyter user interfaces one can use, based on their needs. Please checkout the list and links below for additional information and instructions about how to get started with each of them.
This information explains how to install the Jupyter Notebook and the IPython kernel.
Prerequisite: Python#
While Jupyter runs code in many programming languages, Python is a requirement for installing the Jupyter Notebook. The Python version required differs between Jupyter Notebook releases (e.g. Python 3.6+ for Notebook v6.3, and Python 3.7+ for Notebook v7) .
We recommend using the Anaconda distribution to install Python and Jupyter. We’ll go through its installation in the next section.
Installing Jupyter using Anaconda and conda#
For new users, we highly recommend installing Anaconda. Anaconda conveniently installs Python, the Jupyter Notebook, and other commonly used packages for scientific computing and data science.
Use the following installation steps:
- Download Anaconda. We recommend downloading Anaconda’s latest Python 3 version (currently Python 3.9).
- Install the version of Anaconda which you downloaded, following the instructions on the download page.
- Congratulations, you have installed Jupyter Notebook. To run the notebook:
Alternative for experienced Python users: Installing Jupyter with pip#
Jupyter installation requires Python 3.3 or greater, or Python 2.7. IPython 1.x, which included the parts that later became Jupyter, was the last version to support Python 3.2 and 2.6.
As an existing Python user, you may wish to install Jupyter using Python’s package manager, pip , instead of Anaconda.
First, ensure that you have the latest pip; older versions may have trouble with some dependencies:
Then install the Jupyter Notebook using:
(Use pip if using legacy Python 2.)
Congratulations. You have installed Jupyter Notebook. See Running the Notebook for more details.
Upgrading Jupyter Notebook