MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / tqdm_terminal

Function tqdm_terminal

netdissect/progress.py:21–26  ·  view source on GitHub ↗

Some settings for tqdm that make it run better in resizable terminals.

(it, *args, **kwargs)

Source from the content-addressed store, hash-verified

19 default_verbosity = verbose
20
21def tqdm_terminal(it, *args, **kwargs):
22 '''
23 Some settings for tqdm that make it run better in resizable terminals.
24 '''
25 return tqdm(it, *args, dynamic_ncols=True, ascii=True,
26 leave=(not nested_tqdm()), **kwargs)
27
28def in_notebook():
29 '''

Callers

nothing calls this directly

Calls 1

nested_tqdmFunction · 0.85

Tested by

no test coverage detected