rsalmei / alive-progress

A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
MIT License
5.53k stars 206 forks source link

Include Jupyter and Disable support #111

Closed rsalmei closed 3 years ago

rsalmei commented 3 years ago

YES! Now there are support for Jupyter notebooks and complete Disable behavior!

I've achieved this via four terminal abstractions, with three accessible via force_tty arguments, and one via disable. Also, I've implemented auto-detection of Jupyter notebooks, so there isn't any changes in code to make it work!!

The arguments are:

The Jupyter notebook do not support ANSI Escape Codes, so I had to develop a workaround terminal, which emulate functions line "clear the line" and "clear from cursor". This is the JUPYTER terminal. It seems to work very well, but at this moment should be considered Experimental.

alive-jupyter