autoswitch tqdm for notebooks (#171)

avoids printing the `tqdm` progress bar to a newline in notebooks when detected
This commit is contained in:
zion
2022-06-25 18:37:06 -05:00
committed by GitHub
parent 98f0c17759
commit c453f468b1

View File

@@ -1,6 +1,6 @@
import math
import random
from tqdm import tqdm
from tqdm.auto import tqdm
from functools import partial, wraps
from contextlib import contextmanager
from collections import namedtuple