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


Solution 1:

Ubuntu 20.04 and later

Open the terminal and type:

sudo apt install jupyter-notebook jupyter # jupyter is optional

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.

Solution 2:

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.