Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode cannot connect to Jupyter server when launched via Anaconda Navigator #10818

Open
dangode opened this issue Apr 10, 2019 · 0 comments
Open

Comments

@dangode
Copy link

dangode commented Apr 10, 2019

I filed the following issue with VSCode Python. I was told that this is an Anaconda issue.
microsoft/vscode-python#5145

The final email below summarizes the problems.

From: Dan Gode dan.gode@almaris.com
Sent: Wednesday, April 10, 2019 6:32 AM
To: 'Microsoft/vscode-python' reply+02df04a9cbaf0f1c66fc58436db4d822dd2d2d042757283b92cf0000000118c3894392a169ce19a2c6d2@reply.github.com; 'Microsoft/vscode-python' vscode-python@noreply.github.com
Cc: 'Author' author@noreply.github.com
Subject: Partially Resolved: [Microsoft/vscode-python] Activating Python 3.7.3 64-bit ('base': conda) to run Jupyter failed with Error: Command failed (#5145)

Final update after a long struggle.
Method 1: Works Partially

  1. Launch Anaconda Navigator.
  2. Launch VSCode via the Navigator.
  3. Works: Running a Python Program by sending it to Terminal
  4. Fails: Launching the Interactive Window or sending a section of the code to the interactive window. Jupyter server fails to launch.

Method 2: Works Partially
5. Launch VSCode from the Start Menu directly.
6. Works: Interactive Window works perfectly.
7. Fails: Terminal fails because it can’t find Python modules such as Numpy.

This is still cumbersome but workable. I use Method 1 when I need to run via Terminal and Method 2 when I need the interactive window.

Editing settings.json in the user directory as follows did not help:
This is what my settings.json looks like.
{
"editor.minimap.enabled": false,
"python.dataScience.sendSelectionToInteractiveWindow": true,
"python.pythonPath": "C:\Users\dgode\Miniconda3",
"terminal.integrated.env.windows": {
"PATH": ""
},
"window.zoomLevel": 1
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant