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

Update message in progress bar to display item details #4

Open
ravensorb opened this issue Jun 19, 2024 · 1 comment
Open

Update message in progress bar to display item details #4

ravensorb opened this issue Jun 19, 2024 · 1 comment

Comments

@ravensorb
Copy link

Is there a way to update the text/message in the progress bar while iterating through a list? I'd like to display some metadata related to the item being processed to give context around what is currently happening.

@veghp
Copy link
Member

veghp commented Jun 20, 2024

Perhaps subclassing ProgressLogger (or ProgressBarLogger) and overwriting callback() (or bars_callback()) as instructed here

def callback(self, **kw):
and here is the answer to this?

Then you can instruct it to print using your item. An example is provided in the readme, under "For more complex customization" ..

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

No branches or pull requests

2 participants