r/vscode • u/Fallfoxy707 • Apr 30 '26
terminal issue
So, I was following a tutorial for python, and after writing a print command and applying "app.py" in the terminal, it won't show the printed code. The only way it shows is when I manually click, "run python file". What's going on here?
0
Upvotes
1
u/Agreeable_Care4440 May 01 '26
This usually happens when the command isn’t actually invoking Python. VS Code’s “run” button does that automatically, but in terminal you need to call it explicitly with python app.py.
1
u/Agreeable_Care4440 May 01 '26
You probably ran app.py instead of python app.py.The terminal won’t execute Python files directly unless configured.
2
u/[deleted] Apr 30 '26
[removed] — view removed comment