Open Adamell opened 2 years ago
Hi @Adamell I am not sure about tqdm, but in the meantime, you can potentially unblock yourself with fastprogress
I've had this happen to me before, and I used fast progress to get me out of this jam. I hope this helps. Example is below:
cc: @jph00 (please chime in if appropriate, I recall perhaps something along these lines being one of the motivations of creating fastprogress
from metaflow import FlowSpec, step
from fastprogress.fastprogress import progress_bar
class LinearFlow(FlowSpec):
@step
def start(self):
self.next(self.a)
@step
def a(self):
for i in progress_bar(range(1000000)):
print(i)
self.next(self.end)
@step
def end(self):
print("finishing...")
if __name__ == '__main__':
LinearFlow()
@Adamell I've found that tqdm doesn't freeze the execution but fails to print its progress bar on screen. It just goes under the hood.
Hello, recently, I've noticed that metaflow freezes when used with tqdm and enough large number of print command in the loop. To reproduce: