Jupyter Hub (formerly known as iPython Notebooks) is a powerful tool for running python code in an interactive and easily reaptable way. In this section we’ll setup the llama-recipes
jupyter notebook on the HeadNode of our cluster.
# install npm and configurable-http-proxy
sudo apt install npm
sudo npm install -g configurable-http-proxy
# install jupyter hub
python3 -m pip install jupyterhub
python3 -m pip install jupyterlab notebook # needed if running the notebook servers in the same environment
# check the install:
jupyterhub -h
configurable-http-proxy -h
# start the server
sudo python3 -m jupyterhub
aws ssm start-session --target i-04bfb6c1667411b9d --document-name AWS-StartPortForwardingSession --parameters "portNumber=['8888'],localPortNumber=['8888']"
You should see a URL like: http://localhost:8888/lab
Click on that to connect.