Skip to content

Jupyter Server Fails to launch #3758

@meatballs

Description

@meatballs

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:

  1. Create the following python file in a new folder:
# %%
print("hello")
  1. Execute the cell
  2. Select a conda virtual environment as the interpreter and wait for the kernel to restart
  3. Execute the cell (which should succeed)
  4. Restart vscode in the same folder
  5. Execute the cell - the server fails to start

Logs

Output for Python in the Output panel (ViewOutput, 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions