fastai / fastprogress

Simple and flexible progress bar for Jupyter Notebook and console
Apache License 2.0
1.08k stars 105 forks source link

Master bar not showing in console #63

Closed tcapelle closed 4 years ago

tcapelle commented 4 years ago

The master bar is not showing on console.

bar = master_bar(range(10))
for e in bar:
    for i in progress_bar(range(10), parent=bar):
        sleep(0.05)

On the notebook I get what I want, but not on the terminal. image But on console only get the child bar: image

sgugger commented 4 years ago

Yes that is expected. You can't flush more than one line so you can't have a nested progress bar in console mode. You'll get one like per epoch instead, this is the intended behavior.