fastprogress icon indicating copy to clipboard operation
fastprogress copied to clipboard

won't work in spyder?

Open shammyD opened this issue 4 years ago • 2 comments

Trying usage example 1 in Spyder v5.0.0, python 3.9.2 and won't work?

Just static white boxes at the side that don't grow with job progress....

Screenshot from 2021-04-27 11-07-26

shammyD avatar Apr 27 '21 18:04 shammyD

Maybe this is the same problem as in PyCharm, see #62 and #89. A workaround seems to be to add the following:

from fastprogress import fastprogress
fastprogress.printing = lambda: True

johan12345 avatar Jun 05 '21 21:06 johan12345

I fixed it in spyder with:

import sys
sys.stdout.isatty = lambda: True

Apparently fastprogress only works if sys.stdout.isatty() is True or if you are inside a notebook. See https://github.com/spyder-ide/spyder-kernels/issues/294

impact27 avatar Oct 05 '21 07:10 impact27