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

🐛 Add advanced progress bar handling from rich to make error messages in console show up above progress bar #59

Open
axi0m opened this issue Aug 5, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@axi0m
Copy link
Owner

axi0m commented Aug 5, 2022

from rich.progress import Progress
from time import sleep

todos = range(450)

with Progress() as progress:

    task1 = progress.add_task("Processing todos", todos)

    while not progress.finished:
        progress.console.print(f"Working on job #{task1}")
        progress.update(task1, advance=10)
        sleep(1)%

Sample code above. Need to reformat the main track loops to leverage this instead.

@axi0m axi0m added the bug Something isn't working label Aug 5, 2022
@axi0m
Copy link
Owner Author

axi0m commented Aug 5, 2022

Image

@axi0m axi0m self-assigned this Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant