IPython Scrolling Issue With magic('clear') | Spyder

247 Views Asked by At

When running the code below on Spyder, part of the code shown on the IPython console disappears (i.e. it auto scrolls too far down)

get_ipython().magic('clear')
for i in range(10): print(i)

But it doesn't happen when I add time.sleep(0.1)

get_ipython().magic('clear')
time.sleep(0.1)
for i in range(10): print(i)

Does anyone know why? (And potentially a way to solve it without slowing down the code)

0

There are 0 best solutions below