'Anyway to just run the code in the ide window from pressing F5 in visual studio code?
I keep getting this in my python terminal :
I just want to just run the code itself in the python shell (am using Visual Studio Code as the IDE) .. how do I remove the path from running
Solution 1:[1]
from the python shell, you could simply enter:
>>> execfile('path_to_file.py')
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rachit Kumar Pandey |
