pencil.backpack.printProgressBar ================================ .. py:module:: pencil.backpack.printProgressBar Functions --------- .. autoapisummary:: pencil.backpack.printProgressBar.printProgressBar Module Contents --------------- .. py:function:: printProgressBar(iteration, total, pbar=False, prefix='', suffix='', decimals=1, length=50, fill='X', verbose=False) Call in a loop to create terminal progress bar :param iteration - Required: current iteration (Int) :param total - Required: total iterations (Int) :param pbar - RECOMMENDED: put progress bar object here, False initially :param prefix - Optional: prefix string (Str) :param suffix - Optional: suffix string (Str) :param decimals - Optional: positive number of decimals in percent complete (Int) :param length - Optional: character length of bar (Int) :param fill - Optional: bar fill character (Str) .. rubric:: Example pbar = False; Nt = np.size(varlist) for ii, varname in enumerate(varlist): pbar = pc.backpack.printProgressBar(ii, Nt, pbar=pbar) var = pc.read.var(varname, trim_all=True) ... Non-tqdm Example: printProgressBar(i, l, prefix = 'Progress:', suffix = 'Complete', length = 50) Credit: Greensticks modified version of @Vladimir Ignatyev's solution http://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console