tqdm for loop indicator does not work on for loop using "product"

23 Views Asked by At

I want to use tqdm on a for loop that might be a bit weird and it doesn't work. Here is the for loop in question:

for (Lm1, La1), (Lm2, La2) in tqdm(product(product(Lm_values, La_values), product(Lm_values, La_values))):

And here is what tqdm shows: TQDM error

Is it impossible to use tqdm in that case?

1

There are 1 best solutions below

0
grimad On

Than you for your answers, adding the "total=(len(Lm_values)*len(La_values))**2" argument did the trick.

Have a nice day.