MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.76k stars 495 forks source link

DietPi-Software | Jupyter: Web-based IDE #4451

Open MichaIng opened 3 years ago

MichaIng commented 3 years ago

https://jupyter.org/

fpetru commented 3 years ago

Interactive development using JupyterHub with DietPi

With it, you could start a notebook from any device in your network (at home or office). Jupyter notebooks could be quite useful, especially for Python users. It's easy to setup them locally, but it's always easier to have run via a server (through JupyterHub). Everything becomes at handy, and the notebook could be started from any device (tablet, phone, computer etc.).

Site: https://jupyter.org/

JupyterHub consists of three components:

Installing the hub could be done using pip command:

pip3 install notebook jupyterhub

This uses a configuration file: jupyterhub_config.py and here we could set also the binding port (and choose a different port than default 8000).

jupyterhub -f /path/jupyterhub_config.py

We could have it together installed with jupyterlab

pip3 install jupyterlab

jupyter serverextension enable --py jupyterlab --system

And we could have numpy and seaborn packages as ones of the most used packages:

pip3 install numpy pip3 install seaborn

With them any user could start running graphs, and process numbers.

Reference: https://towardsdatascience.com/setup-your-home-jupyterhub-on-a-raspberry-pi-7ad32e20eed