2016-02-09 07:56:04 +00:00
|
|
|
# How to import tqdm without enforcing it as a dependency
|
|
|
|
try:
|
|
|
|
from tqdm import tqdm
|
2016-10-22 13:17:52 +00:00
|
|
|
except ImportError:
|
2016-02-09 07:56:04 +00:00
|
|
|
def tqdm(*args, **kwargs):
|
|
|
|
if args:
|
|
|
|
return args[0]
|
|
|
|
return kwargs.get('iterable', None)
|