REPL in VSCode #16866
Answered
by
brettcannon
carolinnerebelo
asked this question in
Q&A
REPL in VSCode
#16866
-
Beta Was this translation helpful? Give feedback.
Answered by
brettcannon
Aug 5, 2021
Replies: 1 comment
-
The reason it didn't work for you is you manually launched the REPL, which means Python has no connection to VS Code and doesn't even know it exists (IDLE embeds the REPL, so it controls it directly). For running code interactively in the REPL, you have two options. One is using the interactive window from the Jupyter extension, and the other is to run your selection in the REPL. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
carolinnerebelo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The reason it didn't work for you is you manually launched the REPL, which means Python has no connection to VS Code and doesn't even know it exists (IDLE embeds the REPL, so it controls it directly).
For running code interactively in the REPL, you have two options. One is using the interactive window from the Jupyter extension, and the other is to run your selection in the REPL.