Replies: 1 comment
-
Feeling silly now because I just figured out that this seems to work. Only have to progress = Progress()
#------ Magic Line -------
progress.start()
#-------------------------
progress_global = progress.add_task("[blue]Processing", total=2)
subprocess1()
progress.update(progress_global, advance=1,update=True)
subprocess2()
progress.update(progress_global, advance=1,update=True)
...
# Needed in Notebook to avoid LiveError
progress.refresh()
progress.stop()
progress.console.clear_live() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can't figure out how to manually update a progress bar outside of the context manager. I have a code which calls multiple sub-processes from different applications and the context manager somehow prevents this from properly happening. The goal is to keep track of where we are in the execution with manual "advance" calls ... Is this possible?
This usage doesn't let my sub-processes from correctly happening:
What I would want to do:
Beta Was this translation helpful? Give feedback.
All reactions