Docs / AI & Machine Learning / How to Set Up Jupyter Notebook on a VPS

How to Set Up Jupyter Notebook on a VPS

By Admin · Mar 1, 2026 · Updated Apr 23, 2026 · 27 views · 1 min read

How to Set Up Jupyter Notebook on a VPS

Jupyter Notebook provides an interactive environment for data science, machine learning experimentation, and code prototyping on your Breeze.

Install Python and Jupyter

sudo apt update && sudo apt install python3 python3-pip python3-venv -y
python3 -m venv ~/jupyter-env
source ~/jupyter-env/bin/activate
pip install jupyterlab notebook

Generate Configuration

jupyter notebook --generate-config

Set a password for secure access:

jupyter notebook password

Configure for Remote Access

Edit ~/.jupyter/jupyter_notebook_config.py:

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

Launch Jupyter

jupyter lab

Access it at http://your-breeze-ip:8888 and enter the password you set.

Run as a Systemd Service

Create /etc/systemd/system/jupyter.service to run Jupyter in the background:

[Unit]
Description=Jupyter Lab
After=network.target

[Service]
User=your_user
WorkingDirectory=/home/your_user
ExecStart=/home/your_user/jupyter-env/bin/jupyter lab
Restart=always

[Install]
WantedBy=multi-user.target

Enable and start with sudo systemctl enable --now jupyter.

Was this article helpful?