Links

Get user information

Tags: #jupyter #user #snippet #operations #naas
Author: Florent Ravenel

Input

Import libraries

from naas_drivers import jupyter
from os import environ

Setup your Jupyter

# Jupyter token
JUPYTER_TOKEN = environ.get('JUPYTERHUB_API_TOKEN')

Model

Get user information

data = jupyter.connect(JUPYTER_TOKEN).get_me()

Output

Display result

data