verigak / progress

Easy to use progress bars for Python
ISC License
1.41k stars 179 forks source link

Does this works on Google Colab or Jupyter Notebook ? #80

Closed AkiMosi closed 4 years ago

AkiMosi commented 4 years ago

Hello, Your work is so good. I tried to use this package in both Jupyter Notebook and in Colab, but I can't see any bars!

waylonflinn commented 4 years ago

I also had this problem. The following worked for me.

Bar.check_tty = False
bar = Bar('Progress', max=20)

Before creating your progress bar set check_tty to False on the class.

You may also find it useful to do the following.

Bar.file = sys.stdout

This will print the progress bar without the red stderr box.

AkiMosi commented 4 years ago

Thanks a lot, tried it. It works fine. It printed the progress bar without the red stderr box, even without using this line below

Bar.file = sys.stdout