Skip to content

Better way of showing indeterminate progress #228

@o11c

Description

@o11c

Currently, I have a trick to handle input of unknown size: I set the .total to the next power of 2 above the soon-to-be-current value just before calling .update.

This guarantees that the fraction will repeatedly go from 50% up to 99%, which is actually a pretty decent UX. However, the tqdm-printed metadata includes my "total" as if it's fact, not merely a guess.

A better example is shown in visionmedia/node-progress#121 - though perhaps we should increase the size of the chunk logarithmically between some bounds (possibly altered by __length_hint__)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions