Run Python In Vscode In Python Shell Like Idle
I am well aware of the thread How to execute Python code from within Visual Studio Code But none of them shows how to get the >>> python shell running with the file import
Solution 1:
you can run the file in an interactive mode in VSC code terminal by using the parameter -i : python -i py_file.py
Solution 2:
Ctrl+Shift+P (Command+Shift+P)
and type Python: Start REPL
. Click the command, and you'll get a interactive Python console.
Post a Comment for "Run Python In Vscode In Python Shell Like Idle"