Kill all running Progresses #942
-
I'm currently using a Progress bar to keep track of a training model. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Not as such, but the Progress context manager should shut down threads on exit. Unless the RuntimeError is being handled within the progress context? Maybe create a shared Progress instance rather than create a new one each time. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately I'm using the Progress bar without a context manager (related to this issue and this discussion).
Is there an elegant way to kill the progress bar in this way? |
Beta Was this translation helpful? Give feedback.
-
I wouldn't recommend that approach. Could you keep a reference to the Progress instance in a classvar? If one already exist, call |
Beta Was this translation helpful? Give feedback.
-
I cannot keep a reference but i found that using the stop() method the old progress bar disappears.
|
Beta Was this translation helpful? Give feedback.
I cannot keep a reference but i found that using the stop() method the old progress bar disappears.