Open a new notebook and check if the require env is set :
import osprint('Yes' if (os.getenv('NB_USER') and os.getenv('JUPYTERHUB_USER') and os.getenv('JUPYTERHUB_API_TOKEN')) else 'No')print(os.getenv('NB_USER'), os.getenv('JUPYTERHUB_USER'), os.getenv('JUPYTERHUB_API_TOKEN'))
NB_USER
=> Should be set as your notebook user, probably joyvan
JUPYTERHUB_USER
=> Should be set as your machine user, not root
JUPYTERHUB_API_TOKEN
=> should be auto-set by your hub
Naas is a python module, install it with:
!pip install naas
You can test on your local computer only the Scheduler feature.
Full install needs Kubernetes and Docker. Let's talk.
Start the server in your Jupyter singleuser machine:
!python -m naas.runner &
You can now delete previous cells
It will run until you stop your Jupyter server, go back to: