In my case the Python program will run one or more times, then stop running.
If I quit and restart vscode, the program runs. Not sure what problem is.