DonJayamanne / vscodeJupyter

Jupyter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.jupyter
MIT License
336 stars 34 forks source link

Jupyter kernel opens on busy port #104

Open rn-c1 opened 6 years ago

rn-c1 commented 6 years ago

When starting a new notebook, this extension has the port number hardcoded to 8888 in vscodeJupyter/package.json. If there are other processes using the port, the extension fails to connect to the new notebook.

Environment data

VS Code version: 1.19.1 Jupyter Extension version: 1.1.4 OS and version: Mac OS 10.12.6

Actual behavior

Nothing happens for a few seconds, then the error message Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' command appears. The new notebook does however appear in the list of existing notebooks, and can be connected to manually (though this interferes with the other process listening on the same port).

Expected behavior

A new notebook is started on an unoccupied port, and the extension successfully connects to the kernel without intervention.

Steps to reproduce: