Use on your computer

Install Naas in your local Jupyter environment.

Is your local env ready?

Open a new notebook and check if the required env is set :

import os
print('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'))

Env requirements

  • 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: