Is it possible to set the description of a tqdm progress bar out of its for loop?
A simple example:
with tqdm(range(100), desc='processing') as pbar:
x = 0
for i in pbar:
x += i
y = x ** 2
# 3. set description of pbar 'y = {}'.format(y)'
What should I put in place of 3.?
EDIT: More precisely, I want to compute y after having executed the for loop entirely, then I want to log the y value in the progress bar description (replacing the 'processing' description).