Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] Automatic Handling of Nested track calls #3543

Open
Connor-Bernard opened this issue Oct 30, 2024 · 1 comment
Open

[REQUEST] Automatic Handling of Nested track calls #3543

Connor-Bernard opened this issue Oct 30, 2024 · 1 comment

Comments

@Connor-Bernard
Copy link

Connor-Bernard commented Oct 30, 2024

Have you checked the issues for a similar suggestions?

  • Yes

How would you improve Rich?

I am really enjoying using rich and intend to continue using it whenever I am working with large datasets, but I think it would be extremely helpful to natively support the ability to have nested track statements. For example:

for i in track(range(10)):
    for j in track(range(10)):
        sleep(0.2)

The above example would render a live display with the overall progress like in the gif below but with only two progress bars and the second progress bar would reset to 0 with every iteration of i.

progress gif

What problem does it solve for you?

I am currently using this to track the training of LLMs which is awesome, but it means processing batches of entire datasets. Processing each batch takes a fair amount of time, so it would be really nice to see how quickly processing is occurring for each batch without having to configure detailed statistics or a more complex configuration with a Live Display.

Related Topics

Copy link

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant