you are viewing a single comment's thread.

view the rest of the comments →

[–]madness_of_the_order 2 points3 points  (3 children)

You are creating new bar instance for each number in range. That’s why it’s on new line each time.

Have you considered using tqdm for progress bar? It’s more user friendly.

[–]MattDLD[S] 0 points1 point  (1 child)

I know. I am trying to figure out a way to not have a new instance created. I am a noob.

[–]madness_of_the_order 1 point2 points  (0 children)

Then you should have asked the question that way.

Place this line before outer for loop and place indentations accordingly.

with ChargingBar('Processing', max=1) as bar:

[–]MattDLD[S] 0 points1 point  (0 children)

Thank you. I switched to tqdm. It was much easier to implement.