Environment data
- VS Code version: 1.29.1
- Extension version: 2018.11.0
- OS and version: macOS 10.14.1 (Mojave)
- Python version: Anaconda 3.7.0
- Type of virtual environment used: conda
Actual behavior
When settings.json exists within .vscode and includes a python.pythonPath entry pointing to a conda virtual environment, the jupyter server fails to launch.
If the .vscode folder is deleted, vscode restarted and the same interpreter selected from the menu, the jupyter server starts ok.
Expected behavior
Jupyter server starts and cells execute both when the interpreter is first selected and also when the editor is restarted in the same project.
Steps to reproduce:
- Create the following python file in a new folder:
- Execute the cell
- Select a conda virtual environment as the interpreter and wait for the kernel to restart
- Execute the cell (which should succeed)
- Restart vscode in the same folder
- Execute the cell - the server fails to start
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
None
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
Jupyter notebook failed to launch. Error: The Jupyter notebook server failed to launch in time
| t.onDidNotificationChange | @ | /Applications/Visual…kbench.main.js:2429
| (anonymous) | @ | /Applications/Visual…kbench.main.js:2429
| e.fire | @ | /Applications/Visual…rkbench.main.js:183
| t.notify | @ | /Applications/Visual…kbench.main.js:2484
| t.notify | @ | /Applications/Visual…kbench.main.js:3530
| e._showMessage | @ | /Applications/Visual…kbench.main.js:3242
| e._showMessage | @ | /Applications/Visual…kbench.main.js:3241
| e.$showMessage | @ | /Applications/Visual…kbench.main.js:3241
| t._doInvokeHandler | @ | /Applications/Visual…kbench.main.js:3278
| t._invokeHandler | @ | /Applications/Visual…kbench.main.js:3278
| t._receiveRequest | @ | /Applications/Visual…kbench.main.js:3277
| t._receiveOneMessage | @ | /Applications/Visual…kbench.main.js:3276
| (anonymous) | @ | /Applications/Visual…kbench.main.js:3273
| e.fire | @ | /Applications/Visual…rkbench.main.js:183
| a | @ | /Applications/Visual…rkbench.main.js:337
| n._socketDataListener | @ | /Applications/Visual…rkbench.main.js:338
| emitOne | @ | events.js:116
| emit | @ | events.js:211
| addChunk | @ | _stream_readable.js:263
| readableAddChunk | @ | _stream_readable.js:250
| Readable.push | @ | _stream_readable.js:208
| onread | @ | net.js:594
Environment data
Actual behavior
When settings.json exists within .vscode and includes a python.pythonPath entry pointing to a conda virtual environment, the jupyter server fails to launch.
If the .vscode folder is deleted, vscode restarted and the same interpreter selected from the menu, the jupyter server starts ok.
Expected behavior
Jupyter server starts and cells execute both when the interpreter is first selected and also when the editor is restarted in the same project.
Steps to reproduce:
Logs
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)None
Output from
Consoleunder theDeveloper Toolspanel (toggle Developer Tools on underHelp)