I have been using Visual Studio Code to run Python for a few months, but recently when I select Run Python File or Run Python File in Dedicated Terminal, a new instance of PowerShell opens in the terminal and the current folder is printed, but nothing else happens.
I have tested this with different folders and files, and I have the same issue. However, if I run Python using the global environment instead of my venv, it does work. Also, running the file with Python Debugger: Debug Python File or Run Current File in Interactive Window works.
What could be causing the issue or where could I look further?