Introduced parameter for output stream for progress bar (#3185)
Introduced parameter for output stream for progress bar (#3185)

* Introduced parameter for output stream for progress bar

Using stderr instead of stdout for progress bars can be desirable, see
hyperspy/hyperspy#1842. This change allows users to specify the stream to use
and allows to easily change the default behavior.

* Implemented the change suggested by @sk1p to fix the failed tests

* Added spaces for code style

blaze/dask,dask/dask,mrocklin/dask,jcrist/dask,ContinuumIO/dask,ContinuumIO/dask,mrocklin/dask,jakirkham/dask,jakirkham/dask,jcrist/dask,blaze/dask,dask/dask