Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

use VS Code Python extension to log into remote Jupyter URI that is password-protected (no token in URI)

I'm trying to use the MS VS Code Python extension to log into a remote JupyterHub server according to these docs, which say to provide the ?token= parameter in the URI: https://code.visualstudio.com/docs/python/jupyter-support

However, the server I'm trying to log into is password protected - I don't really have control over removing the password protection. The Jupyter docs suggest looking for the token in the jupyter logs, but it looks to me like using password protection suppresses the token from the logs, too: https://jupyter-notebook.readthedocs.io/en/latest/security.html#security-in-the-jupyter-notebook-server

Am I missing something? Is it not possible to use the VS Code extension to log in to a password-protected notebook server?

like image 831
jseery Avatar asked Jan 26 '23 15:01

jseery


1 Answers

Currently this is not supported, we only support connecting via the token. We know that this is not optimal for many users, but as of now the only way to enter in the password and authenticate the session is via the actual login HTML page that you see in the browser when you try to connect to a password protected Jupyter. So we don't yet have a way to automate that inside of VSCode. We're looking at adding support for this, but we will probably need changes from the Jupyter side to support this so it won't be in the immediate future.

like image 127
Ian Huff Avatar answered Feb 05 '23 15:02

Ian Huff