Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 1.45 KB

Jupyter_Get_user_information.md

File metadata and controls

43 lines (25 loc) · 1.45 KB



Template request | Bug report | Generate Data Product

Tags: #jupyter #user #snippet #operations #naas

Author: Florent Ravenel

Description: This notebook provides a way to retrieve user information from Jupyter.

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