description |
---|
Interact with Jupyter app |
{% embed url="https://jupyter.org/hub" %} Website {% endembed %}
{% hint style="danger" %} You must Connect before any other methods {% endhint %}
You should get your token here :
{% hint style="success" %} In Naas cloud you can connect without any argument it will find your token alone {% endhint %}
{% embed url="https://app.naas.ai/hub/token" %}
token = "*****"
jp = naas_drivers.jupyter.connect(token)
me = jp.get_me()
Only Naas admin can do it.
users = jp.get_users()
email = "[email protected]"
user = jp.get_user(email)
email = "[email protected]"
password = "****"
user = jp.create_user(email, password)
Get one Authorization for user.
email = "[email protected]"
is_authorize = jp.get_authorize_user(email)
Authorize one user.
email = "[email protected]"
is_authorize = True
user = jp.change_authorize_user(email, is_authorize)
check if user has running server
email = "[email protected]"
active = jp.is_user_active(email)
change password of one user
email = "[email protected]"
newPassowrd = "*****"
user = jp.change_password_user(email, newPassowrd)
email = "[email protected]"
uptime = jp.get_server_uptime(email)
email = "[email protected]"
jp.stop_user(email)
email = "[email protected]"
jp.start_user(email)
email = "[email protected]"
jp.restart_user(email)
{% embed url="https://jupyterhub.readthedocs.io/en/stable/reference/rest.html" %}