title: Keep a figure "on hold" after running a script
body: <p>I have this Python code:</p>
  
  <pre><code>from pylab import *
  from numpy import *
  
  time=linspace(-pi,pi,10000)
  ycos=cos(time)
  ysin=sin(time)
  
  plot(time,ycos)
  plot(time,ysin)
  
  show()
  </code></pre>
  
  <p>If I do all these steps via an Ipython terminal, I can keep the figure open and interact with it. However, if I run the script via <code>$python script.py</code> the figure opens and closes instantly.</p>
  
  <p>How could I have the same behavior as the Ipython terminal but when run as a script?</p>