-
Notifications
You must be signed in to change notification settings - Fork 133
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
feat: allow status.progress_bar to be used as a context manager #1308
feat: allow status.progress_bar to be used as a context manager #1308
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Nice API. This is definitely an improvement.
tiny edits
🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.4.11-dev11 |
Hi! Thanks for all the good work with marimo. I found myself wanting to update the subtitle while the progress bar was running, which is a pattern I've used before with
tqdm
.I modified progress_bar to also be usable as a context manager, which exposes the underlying
ProgressBar
and allows for manual calls toupdate
. This achieves the functionality I'm looking for, and still allows for using the normal iterable method.Happy to make any changes if needed 😄