TransWikia.com

Jupyter Notebook Installation

Ask Ubuntu Asked by karfai on January 27, 2021

Is it possible to install Jupyter Notebook through apt-get install? For example, we can install numpy by using apt-get install python-numpy.

6 Answers

Ubuntu 20.04 and later

Open the terminal and type:

sudo apt install python3-notebook jupyter jupyter-core 

Ubuntu 18.04-19.10

Open the terminal and type:

sudo apt install python3-notebook jupyter jupyter-core python-ipykernel 

To start the notebook server run the following command:

jupyter notebook

You should see Jupyter Notebook open in your web browser.


Ubuntu 17.04 and 17.10

In Ubuntu 17.04 and later Jupyter Notebook is available in the default Ubuntu repositories and can be quickly and easily installed using apt. Open the terminal and type:

sudo apt install jupyter-notebook jupyter-core python-ipykernel 

python-ipykernel is necessary for running Python 2.x programs in Jupyter Notebook, which otherwise supports only Python 3.x.

To start the notebook server run the following command:

jupyter notebook

You should see Jupyter Notebook open in your web browser

Ubuntu 16.04 and earlier

Google Colaboratory is Google's free Jupyter notebook environment that requires no setup and runs entirely in the cloud.

Correct answer by karel on January 27, 2021

sudo -H pip3 install jupyter (with pip3, not pip) worked for me after numerous other approaches. I did this on the ubuntu linux with python 3.5.3 built into lavano chromebook c330. Also installed spyder and numerous favorite commands like "locate".

Answered by Never Too Old To Learn on January 27, 2021

Based on official recommendation here we should use:

python -m pip install jupyter
python3 -m pip install jupyter

After this command and all of the previous I had a problem with permission error. To resolve it we should use next command:

python -m pip install jupyter --user
python3 -m pip install jupyter --user

Answered by Vasyl Lyashkevych on January 27, 2021

Install it using

sudo -H pip install jupyter

After installation completes, use the following command

jupyter notebook

Answered by em_bis_me on January 27, 2021

It doesn't appear to be possible using only apt-get.

apt-file find jupyter ## returns no results

For 16.04:

sudo apt-get install python-pip
pip install --upgrade pip ## secret sauce -- pip fails otherwise
sudo pip install jupyter

then

jupyter notebook

Replace 'pip' with 'pip3' for use with Python3.

Answered by nobar on January 27, 2021

I installed it using

pip install jupyter

(pip3 if Python3 is installed; also, ensure you have root access, i.e. logged in to the terminal as root@...)

and for python dependencies

apt-get install build-essential python3-dev

In ubuntu desktop 14.04.3 LTS. I am on python3.

Answered by Ashu on January 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP