Sorry if this is a stupid question, but I have not been able to solve it through the following related threads:
Visual studio code is not showing the ouput of python
How to execute Python code from within Visual Studio Code
I just installed VS Code for Windows v. 1.41 and I'm using Python 3.7.4 through an Anaconda distribution. After I upgraded VS Code, it will no longer print statements during a code run, only in the end will it print everything at once.
I tried to open "Task: Configure Default build task" and opening tasks.json, which has the following content:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "echo",
"type": "shell",
"command": "python",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
"args": [
"${file}"
],
"group": {
"kind": "test",
"isDefault": true
}
}
]
}
As far as I understood, it should be either "echo" or "reveal" that should be responsible for the missing print statements during code execution, but both are set to true..
Does anyone have a solution for this? I would prefer to not use the Code Runner extension, if possible.