|
From: <Fer...@co...> - 2005-04-27 23:24:40
|
Quoting John Hunter <jdh...@ni...>: > >>>>> "steve" == steve schmerler <el...@gm...> writes: > steve> 2.) When I start my Python shell (IPython, WinXP) and use > steve> MPL the 1st time in the session > > steve> from pylab import * plot(...); show() > > steve> the plot window appears but I'm not able to type anything > steve> in the shell. I close the plot window and > steve> plot(...); show() > > steve> again. From now on I'm able to type in the shell. What's > steve> up? > > You need to start ipython with -pylab option, and then 1) you do not > need to import pylab and 2) you do not need to call show. ipytohn > will read your rc file and do the right thing. See Just to clarify, if you are running a script via ipython's %run, you do need to call show() at the end. That's precisely the conscious change John referred to recently in another thread. Best, f |