tqdm prints an empty bar after loop ends. I tried implementing this solution, but with no success.
The problem does not exist if I remove the print statement (see code).
My code is:
for PhotoIdx in tqdm(range(Nphotos), position=0, leave=True):
....
end
print("something")
return x
I attach a photo with what is outputted to the terminal (the third bar is from another python file).

This appears to be a Pycharm issue, which can be fixed by editing the Run/Debug Configuration in Pycharm and checking the box that says "Emulate terminal in output console"

The standard output terminal appears to have trouble with properly outputting text applications that use certain terminal features, although I don't know the exact cause of this particular problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With