Template request | Bug report | Generate Data Product
Tags: #jupyter #server #restart #snippet #operations #naas
Author: Florent Ravenel
Description: This notebook provides instructions on how to restart a Jupyter server.
from naas_drivers import jupyter
from os import environ
# Jupyter token stored in your env
JUPYTER_TOKEN = environ.get("JUPYTERHUB_API_TOKEN")
# Username => email address linked to your jupyter account
username = "[email protected]"
jupyter.connect(JUPYTER_TOKEN).restart_user(username)