vscode: Remote SSH Connection Crashed after openning a Jupyter Notebook on the remote server

Does this issue occur when all extensions are disabled?: No

  • VS Code Version: 1.83.1
  • OS Version: Windows 11 latest

Steps to Reproduce:

  1. Open up a remote ssh connection to a remote server
  2. Open a Jupyter Notebook stored on that remote server. It can be a brand new Notebook or something already existed.
  3. VSCode crashed with “Cannot reconnect. Please reload the window.”

It could be a problem with VSCode, or the Python / Jupyter extension. This did not happen with VSCode 1.83.0 so something in the update could have messed things up.

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Reactions: 11
  • Comments: 16 (2 by maintainers)

Most upvoted comments

We figured out it was caused by Pylance extension killing the remote extension host process (see details in https://github.com/microsoft/pylance-release/issues/4983). The Pylance team has fixed this issue in both Stable and Prerelease. To ensure you can get the update before VS Code remote extension host crashes again:

  • Open an empty Remote SSH window (Remote indicator -> Connect to Host … -> Pick the remote)
  • Open extensions view and find Pylance, upgrade to latest v2023.10.40

Let me know if it fixes for you.

My solution is downgrading the jupyter extention to v2023.10.1002931100 (but I dont know my last jupyter version, just downloaded the second version from vscode office website), that works for me.

I’m seeing the same problem when connecting to Remote-SSH as well as WSL. occurs in both “code” and “code-insiders” (from MS App Store). Specifically occurs for me when attempting to “Select Kernel”.