Skip to content

print/get final nested progbar stats iterations/sec #660

@ahundt

Description

@ahundt
  • I have visited the [source website], and in particular
    read the [known issues]
  • I have searched through the [issue tracker] for duplicates
  • I have mentioned version numbers, operating system and
    environment, where applicable:
    import tqdm, sys
    print(tqdm.__version__, sys.version, sys.platform)

I'd like to get final stats from a nested progbar such as:

  • it/s
  • total time
  • total steps

It seems tqdm(leave=True) by default, but only the outer progbar rather than nested progbars leave anything behind. Another alternative would be to have a way to get the final stats out of the tqdm progbar after it is done iterating, and I could write them out myself.

Is this doable?

Slightly related issue:
#230

Side note: I've been using tqdm all the time for years now. It is pretty amazing, thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions