pythonvisual-studio-codejupyter

Jupyter server crashed. Unable to connect. Error code from jupyter: 1"


I keep getting this error message when trying to run the python interactive window in VS Code. I have tried this on another laptop with no issue but for some reason, it happens on my other laptop. The error message is:

"Executing code failed : Error: Jupyter server crashed. Unable to connect. 
Error code from jupyter: 1"

I've tried uninstalling VS Code, uninstalling the python extension, researching the error code online, but no luck.


Solution

  • I had a similar issue. I had to configure a setting through VS Code's command palette:

    "Python: Select Interpreter to Start Jupyter server"

    and select an environment with Jupyter installed, to allow VS Code to start the server.

    For reference: https://github.com/microsoft/vscode-python/issues/11048