Skip to content

Commit 27e3ab2

Browse files
authored
Fix TQDM usage (#465)
Newer versions of tqdm behave differently at a terminal vs in a jupyter notebook. Import from `tqdm.auto` instead so that the downloader looks right in either a notebook or the terminal.
1 parent d9a82e6 commit 27e3ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pooch/downloaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Mypy doesn't like assigning None like this.
2020
# Can just use a guard variable
2121
try:
22-
from tqdm import tqdm
22+
from tqdm.auto import tqdm
2323
except ImportError:
2424
tqdm = None # type: ignore
2525

0 commit comments

Comments
 (0)