Jupyter Notebook is an open-source web application for creating interactive computational documents that combine live code, equations, visualisations, and markdown text. It is widely used for data science, machine learning, and scientific computing. This guide installs Jupyter Notebook on Ubuntu 26.04 LTS.

Tested and valid on:

  • Ubuntu 26.04 LTS

Prerequisites

  • Ubuntu 26.04 LTS with Python 3.14 installed
  • A user with sudo privileges

Step 1 – Install Jupyter via pip

python3 -m venv ~/jupyter-env
source ~/jupyter-env/bin/activate
pip install jupyter notebook

Step 2 – Configure Jupyter for Remote Access

jupyter notebook --generate-config

Edit the config:

nano ~/.jupyter/jupyter_notebook_config.py

Uncomment and set:

c.ServerApp.ip = '0.0.0.0'
c.ServerApp.port = 8888
c.ServerApp.open_browser = False
c.ServerApp.allow_remote_access = True

Step 3 – Set a Password

jupyter notebook password

Step 4 – Create a systemd Service

sudo nano /etc/systemd/system/jupyter.service

Add:

[Unit]
Description=Jupyter Notebook Server
After=network.target

[Service]
Type=simple
User=$USER
Environment="PATH=/home/$USER/jupyter-env/bin"
ExecStart=/home/$USER/jupyter-env/bin/jupyter notebook 
    --config=/home/$USER/.jupyter/jupyter_notebook_config.py 
    --no-browser
Restart=always

[Install]
WantedBy=multi-user.target
sudo systemctl start jupyter
sudo systemctl enable jupyter

Step 5 – Configure UFW

sudo ufw allow 8888/tcp

Step 6 – Install Data Science Libraries

source ~/jupyter-env/bin/activate
pip install numpy pandas matplotlib scipy scikit-learn seaborn

Step 7 – Access Jupyter

Open a browser and navigate to http://your-server-ip:8888. Enter your configured password to log in and start creating notebooks.

Conclusion

Jupyter Notebook is running on Ubuntu 26.04 LTS. For enhanced features, consider upgrading to JupyterLab (pip install jupyterlab) or using JupyterHub for multi-user environments.