fastai / fastprogress

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

fastprogress in console mode locks up emacs #43

Closed rpgoldman closed 4 years ago

rpgoldman commented 4 years ago

I am using fastprogress through emacs -- using emacs's inferior-python-mode and elpy. When I invoke a function (through PyMC3) that uses fastprogress, it takes over input to the editor until the python call using fastprogress terminates. Also, it takes the current cursor and pulls it out of whatever editor buffer it was in and puts it into the interactive python buffer.

My guess is that this has something to do with the way that fp is writing its output to the console. Is it perhaps sending characters to it one at a time to write the progress bar?

rpgoldman commented 4 years ago

I'm inclined to close this, since progressbar=False solves the problem after the modifications to handling that argument. Not as good an answer as having a progressbar that works better in text mode, but unless someone's excited about fixing that... Possibly we could change the progressbar default to False if we could tell if we are running in a graphics capable environment? Or swap in a different progressbar?

sgugger commented 4 years ago

I don't really know what to do for this issue sadly, so closing...