from tqdm import tqdm
from time import sleep
for i in tqdm(range(5), leave=False):
sleep(0.1)
print("Hello world!")
When using leave=False (which instructs the progress bar to disappear when finished), Spyder IPython console seems to not quite work as expected. Below is what I got from Spyder overlaid (top right) with what I got from a standalone IPython console from the terminal:
Note: the screenshot from standalone IPython console is the expected output.
Here's the snippet that reproduces the bug:
When using
leave=False
(which instructs the progress bar to disappear when finished), Spyder IPython console seems to not quite work as expected. Below is what I got from Spyder overlaid (top right) with what I got from a standalone IPython console from the terminal:Note: the screenshot from standalone IPython console is the expected output.