I additionally tried using a Sagemaker Notebook instance, to see if it was the kernel dockerization that Studio uses that was messing things up. But it seems to actually log less information from a Notebook instance vs Studio .
Yep I think you are correct, you should have had the same output as a local jupyter notebook, and it seems that in sagemaker studio it is not working 😞
Let me check something
it does return kernels, just not sessions
What do you have in "server_info['url']" ?
I think it just ends up in /home/sagemaker-user/{notebook}.ipynb
every time
if there are any tests/debugging you'd like me to try, just let me know
This is strange, let me see if we can get around it, because I'm sure it worked 🙂
and this
server_info['url'] = f"http://{server_info['hostname']}:{server_info['port']}/{server_info['base_url']}/"
so my reading of the jupyter-kernel-gateway
docs is that each session is containerized, so each notebook "session" is totally isolated
but the call to jupyter_server.serverapp.list_running_servers()
does return the server