Progress-bar selection for terminal and notebook environments.
Functions:
tqdm
Create a terminal bar unless the process is running in a notebook.