0

I am currently using Python on a remote server with vscode. I always use ctrl+enter or shift+enter for running the selected line or section. However, this stopped to work several days ago. When I press shift+enter, it will open two command terminals: one for the python interactive terminal, and the codes are sent to the other one, which does not have python. Right-clicking and manually selecting the desired command give the same results. enter image description here

The screenshots of these two terminals are shown below.

The one with python interactive window: enter image description here The one receiving the codes: of course bash cannot execute python codes :-( enter image description here

Here are keyboard shortcut settings sorted by highest precedences: enter image description here enter image description here

Thanks a lot in advance!!!!

Christine
  • 93
  • 1
  • 5
  • @starball Yes, thanks a lot!!!! – Christine Jun 19 '23 at 06:38
  • then I encourage you to give the answer there an upvote ([/help/why-vote](/help/why-vote)) and close this question as a duplicate of that one ([/help/duplicates](/help/duplicates)). – starball Jun 19 '23 at 06:45

1 Answers1

0

I found that it is resolved by installing a older version of Python extension. Maybe there are multiple versions of python on that server and 2022.8.0 version.

Christine
  • 93
  • 1
  • 5
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 19 '23 at 01:14