mkaz.blog

Setting up Jupyter Notebook on Raspberry Pi

Setup

Install Jupyter Notebook and dependencies.

python3 -m pip install numpy pandas matplotlib tabulate plotly
python3 -m pip install jupyter

Create the config file a ~/.jupyter/jupyter_notebook_config.py

# Allow remote access
c.ServerApp.allow_remote_access = True
 
# Allow from anywhere
c.ServerApp.ip = '0.0.0.0'
 
# Don't open a browser
c.NotebookApp.open_browser = False
c.ServerApp.open_browser = False

Run

python3 -m pip jupyter notebook

Access using your Raspberry Pi's IP address, for example if at 192.168.5.1 open http://192.168.5.1:8888/

If you are running a firewall like ufw you will need to enable port 8888

sudo ufw allow 8888
sudo ufw reload

Automate

Automatically start Jupyter Notebook on boot.