Casper da Costa-Luis
Casper da Costa-Luis
Do you mean `miniters=1, mininterval=0`?
I think the issue is with https://github.com/tqdm/tqdm/blob/master/tqdm/_monitor.py. The update logic is https://github.com/tqdm/tqdm/blob/cc53d86f86cef63ba8dbbfb8e9cb27d4f247fd20/tqdm/_monitor.py#L85-L92 which may not be triggered properly.
Maybe related: #543, #320
> I'm not sure, but what if the and is exchanged for an or? Hah, not likely an option. You earlier comment is valid though - it's a bit of...
instead of `tqdm.write(x)` you could `tqdm.write(x, end='')`
`tqdm(..., disable=True)`
you should separately redirect stdout and stderr. tqdm outputs to stderr. If you need to parse stderr then you should somehow pass `disable=True` (e.g. `disable=not args.verbose)` or deal with `\r`
you could do some combination of: - replace `\r` with `\n` in log files - specify `miniters` and/or `mininterval` to increase/decrease number of lines - subclass + replace `\r` with...
related to #281, #713
Released in [v4.66.5](https://tqdm.github.io/releases/#v4665-2024-08-03)