Skip to content

[REQUEST] Enable Speed For while total is not None in TaskProgressColumn #3835

@XXXXRT666

Description

@XXXXRT666

NOTE: If a feature could be implemented in a third-party library, then it is unlikely to be accepted as part of the core library.

NOTE: Feature requests will not be considered unless first approved in discussions (https://github.com/textualize/rich/discussions)

How would you improve Rich?

Image

If we using TaskProgressColumn with total is not None progress, it will only render the percentages

What problem does it solve for you?

I used rich in a DL Training Script, I have to inherit TaskProgressColumn, change

if task.total is None and self.show_speed:
            return self.render_speed(task.finished_speed or task.speed)

to

if task.total is None or self.show_speed:
            return self.render_speed(task.finished_speed or task.speed)

to make the speed rendered

I think this and could be or

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