Closed kevinzwang closed 2 weeks ago
Attention: Patch coverage is 50.00000%
with 8 lines
in your changes are missing coverage. Please review.
Project coverage is 79.16%. Comparing base (
984631c
) to head (178c875
). Report is 3 commits behind head on main.:exclamation: Current head 178c875 differs from pull request most recent head 16410e4. Consider uploading reports for the commit 16410e4 to get more accurate results
A little nasty to test, but maybe a screenshot of the new behavior when the widgets stuff isn't installed will suffice?
A little nasty to test, but maybe a screenshot of the new behavior when the widgets stuff isn't installed will suffice?
@jaychia
What it looks like before:
What it looks like with changes:
Finally figured out the issue! When using
tqdm.auto
, the library does correctly fall back to regular tqdm if theipywidgets
library is not present, but the thing is thattqdm
by default actually writes to STDERR instead of STDOUT, which shows up in a notebook but no the command line.This fix changes the default file from
sys.stderr
tosys.stdout
for tqdm when we are in an IPython environment.Resolves #2083