sudo rm /usr/bin/python
sudo ln -s /usr/bin/python3 /usr/bin/python
export PATH=/home/pi/.local/bin:$PATH
sudo apt update
sudo apt install python3-pip -y
sudo apt install npm -y
sudo apt install libatlas-base-dev -y
pip3 install --upgrade pip
sudo -H pip3 install notebook jupyterhub
sudo npm install -g configurable-http-proxy
jupyterhub --generate-config
sudo mv jupyterhub_config.py /root
echo "[Unit]
Description=JupyterHub Service
After=multi-user.target
[Service]
User=root
ExecStart=/usr/local/bin/jupyterhub --config=/root/jupyterhub_config.py
Restart=on-failure
[Install]
WantedBy=multi-user.target
" | sudo tee /lib/systemd/system/jupyterhub.service
sudo systemctl daemon-reload
sudo systemctl start jupyterhub
sudo systemctl enable jupyterhub
jupter
by
Tags: