Tqdm: Round number in format rate_noinv

Created on 23 Nov 2020  Â·  4Comments  Â·  Source: tqdm/tqdm

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.

questiodocs ‽

All 4 comments

{rate_noinv:.2f}

Thank you so much.

  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)

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

catchlove666 picture catchlove666  Â·  3Comments

andreasbaumann picture andreasbaumann  Â·  5Comments

schwobr picture schwobr  Â·  5Comments

yarikoptic picture yarikoptic  Â·  3Comments

lrq3000 picture lrq3000  Â·  5Comments