stnmf.util.tqdm
- stnmf.util.tqdm(*args, **kwargs)
Wrapper function for tqdm exposing the attribute auto to switch between tqdm.auto.tqdm and tqdm.std.tqdm.
- stnmf.util.auto
If True, use tqdm.auto.tqdm. If False resort back to tqdm.std.tqdm. Default is True
- Type:
Notes
While tqdm.auto.tqdm can distinguish Python from IPython for displaying respective progress bars appropriately, jupyter notebooks are indistinguishable from the jupyter console. To avoid issues, the use of tqdm within this package can be adjusted. This here function wraps tqdm and allows to override its use and to manually disable auto detection if desired by setting stnmf.util.tqdm.auto to False.
Examples
Override the setting and revert to the standard tqdm and trange.
>>> import stnmf.util >>> stnmf.util.tqdm.auto = False