When using the tqdm package for showing a progress bar in Python scripts, it does not display properly when the script is run through Taskfile. Using tqdm in a for loop should display a progress bar, but if the script is run through Taskfile, the completed progress bar is only displayed after the loop finished running.
It's a problem I had for a long time. I could not find anything online, so now that I solved it, I'm posting it here.
There is a setting in Taskfile that improves the display of interactive scripts: Interactive CLI application. Setting
interactivetotruealso solves the issue encountered with tqdm.