We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

alexTnuts • 9 years ago

Want the one-line answer ? Just type:

plt.ion()

I know it's been quite a long time that the question was asked, but I had this problem today and looked for an answer for hours.

So it might be helpful for next people to know that straight answer.

Thanks to this guy https://www.youtube.com/wat... at 23:30 !

'plt' is used because of my import: import matplotlib.pyplot as plt

I'm using python2.7 on a mac with iTerm2.

Artem Gencurr • 5 years ago

The only solution that works!
Thank you very much.
Wish you all the best, Mark Needham.

P.S. Surprised: It is 2020 and the solution is still some additional commands appended to code after building a plot.
I would be surprised if nothing changes until 2030.

Enrique Go • 6 years ago

I fucking love you!!! I spent 2 days searching for the solution!! Thank you bro

JaeYoung Kim • 8 years ago

You saved my time. Thank you :-)

Cleyton Messias • 9 years ago

Thanks man :D

Daniel Seita • 9 years ago

This worked for me. Thanks!

Andres Zapata Cano • 10 years ago

This worked for me, thanks.