tqdm / tqdm

:zap: A Fast, Extensible Progress Bar for Python and CLI
https://tqdm.github.io
Other
28.57k stars 1.35k forks source link

Round number in format rate_noinv #1078

Closed datnguyen20007 closed 3 years ago

datnguyen20007 commented 3 years ago

When I try to use tqdm.notebook.tqdm pbar = tqdm(total=num_train, bar_format='{n_fmt}/{total_fmt} files, {rate_noinv} items/sec')

It shows the display problems:

  1. The progress bar still displays on the left side
  2. {rate_noinv} variable need to round to 02 decimals. Example: 88.53514394600354 items/sec

Thank you developers for your good tool.

casperdcl commented 3 years ago

{rate_noinv:.2f}

datnguyen20007 commented 3 years ago

Thank you so much.

casperdcl commented 3 years ago
  1. The progress bar still displays on the left side

It's not really a progress bar in this mode - it's more like a status indicator (blue/green/red for running/complete/error)

datnguyen20007 commented 3 years ago

Sir, thank you very much. How can we turn off this status indicator, keep text progress only ?