skip to Main Content

I face the same problem as VS Code "Run selection/line in Python interactive window" not working at all, yet using Bisect to disable and detect the reasons through extensions didn’t help. For me the problem started after VScode itself was updated yesterday.

VS Code version: 1.75.1
Python version: 3.9.13
Python VS Code extension: 2023.2.0

This command "Shift + Enter" just stopped working in full all of a sudden. It runs for a single line selected, but not for multiple. I cannot find why.

It is just time consuming to copy and paste the same code in the interactive code to run it.
Any ideas how I can fix it?

2

Answers


  1. Chosen as BEST ANSWER

    Just looking into the dev tools I recognized the problem. I had for whatever reason a package installed googleapis_common_protos which was blocking the implementation. After uninstalling that package, the problem is resolved.

    Now I can run again a selection in interactive Jupyter window.


  2. This problem seems to be caused by the 1.75.1 update. I solved this problem by using the old version of vscode. You can install the old version of vscode here.

    By the way, you can also submit the problem to github/VsCode for repair.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search