I’m running JHub 0.8.2 on AWS EKS cluster
I would like to know if it is possible to retrieve the owner of the current notebook server.
E.g.
Let’s assume I navigate to https://myjupyterhubhost.com/user/john-doe/notebooks/SampleNotebook.ipynb
In python, I want to do this:
user = get_current_context().get_notebook_user_owner()
print(f"The user who owns this notebook server: {user}")
# Output:
# The user who owns this notebook server: john-doe