Jupyter Notebook & Lab
Jupiter Notebook
Open Terminal and type:
sudo apt update
sudo pip3 install setuptools
sudo apt install -y libffi-dev cffi
pip install --break-system-packages notebook
Run:
jupyter notebook
Open Browser:
http://localhost:8888/
Find it in menu Programming!
From another machine in the same network open a terminal, cmd, powershell:
Establish a SSH tunnel from Raspberry Pi to your device, in username the pi user, remote server ip the Raspberry Pi IP(If your device is Windows or Apple you can put @raspberrypi)
ssh -N -f -L localhost:8888:localhost:8888 username@remote_server_ip
Example:
username: pibsas
remote_server_ip: raspberrypi
ssh -N -f -L localhost:8888:localhost:8888 pibsas@raspberrypi
Type your pi password and hit enter. Open your browser:
http://localhost:8888/
Will ask for a token or password, go back to raspberry pi Terminal and type:
jupyter server list
Copy the token you see after token= and pase on your remote device, now you will on the notebook.
Serve to the LAN:
Choose the ip of Raspberry Pi instead of localhost, and all the devices in your LAN will can access.
jupyter notebook --ip 192.168.0.99 --port 8888
In your device connected to the same WiFI/Ethernet open a browser and type the Pi ip:8888/tree?token=the_token_key you will see the token on the Pi Terminal.
http://192.168.0.99:8888/tree?token=d8d7a13bc178e6f55c5564c2f76d197e9ba91a45cc9772cb
Or Generate a Password:
Open terminal and type.
jupyter notebook --generate-config
jupyter notebook password
Enter a password 2 times, then launch the server and just go to:
http://192.168.0.99:8888
And Login with your configured password.
Docs:
Jupyter Lab:
pip install --break-system-packages jupyterlab
Run:
jupyter lab
Open Browser if not automatically:
http://localhost:8888/lab
Find it in menu Programming!
Serve to the LAN:
Choose the ip of Raspberry Pi instead of localhost, and all the devices in your LAN will can access.
jupyter lab --ip 192.168.0.99 --port 8888
In your device connected to the same WiFI/Ethernet open a browser and type the Pi ip:8888/tree?token=the_token_key you will see the token on the Pi Terminal.
http://192.168.0.99:8888/lab?token=d8d7a13bc178e6f55c5564c2f76d197e9ba91a45cc9772cb
Or Generate a Password:
Open terminal and type.
jupyter lab --generate-config
jupyter lab password
Enter a password 2 times, then launch the server and just go to:
http://192.168.0.99:8888/lab
And Login with your configured password.
Docs:
Voilà
pip install --break-system-packages voila
Run:
voila
Open Browser:
http://localhost:8866/