-
Notifications
You must be signed in to change notification settings - Fork 356
Closed
Description
Bug: Notebook Editor, Interactive Window, Editor cells
This is a follow up to https://github.com/microsoft/vscode-python/issues/6309 which has been locked but the issue persists.
Steps to cause the bug to occur
- Run a password-protected jupyterhub server at some URL accessible from the machine running vscode, e.g. https://localhost:4443/jupyter/
- Generate API token in JupyterHub (go to control panel, token link on top)
- Set up "python.dataScience.jupyterServerURI" to point to the jupyterhub root URL with the token generated above, e.g. https://localhost:4443/jupyter/?token={guid_comes_here}
- Try to run a jupyter notebook cell.
Actual behavior
You get the following error message:
Error: Failed to connect to remote Jupyter notebook.
Check that the Jupyter Server URI setting has a valid running server specified.
https://localhost:4443/jupyter/
TypeError: request to https://localhost:4443/jupyter/api/contents/?1579541567509 failed, reason: connect ECONNREFUSED 127.0.0.1:4443
Expected behavior
The error message above is correct since vscode is trying to access the jupyterhub API which is password protected. Instead, it should access the notebook API with the specified token. For instance, if I copy the following URL into an in-private window of a browser, I can access the single user jupyter server without entering the jupyterhub password:
Your Jupyter and/or Python environment
Please provide as much info as you readily know
- Jupyter server running: Remote
- Extension version: 2020.1.58038
- VS Code version: 1.41.1
- Setting python.jediEnabled: false
- Python and/or Anaconda version: 3.7.3
- OS: Linux (distro): CentOS (SL7.1)
- Virtual environment: conda
Developer Tools Console Output
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer
Metadata
Metadata
Assignees
Labels
No labels