[SciPy-user] python/scipy as matlab, using ipython

John Hunter jdhunter at ace.bsd.uchicago.edu
Fri Sep 15 09:38:38 CDT 2006

>>>>> "Gael" == Gael Varoquaux <gael.varoquaux at normalesup.org> writes:

    Gael>     Hello Lars, I don't think there is an obvious way of
    Gael> doing this with ipython (though you might get a different
    Gael> answer from a ipython wizard). I have a suggestion. I
    Gael> haven't tested this thoroughly, but you can have a look.
    Gael> Use SPE (Stany's Python Editor) as an editor. Spe has a
    Gael> python shell. To use pylab in the python shell you should
    Gael> use the WXAgg backend (edit your ~/.matplotlib/.matplotlibrc
    Gael> and set

    Gael> backend : WXAgg

    Gael> Then in the shell you can use python interactively or you
    Gael> can run the scripts you are editing in it. One big caveat:
    Gael> you create an display a figure before plot to it:

    Gael> You should do from numpy import * from pylab import * t =
    Gael> arange(1,10) figure() # Important: create the figure before
    Gael> attempting to plot to it show() # Important: display the
    Gael> figure before attempting to plot to it plot(t,cos(t)) show()

This use of show should not be necessary (and is explicitly not
supported) if you follow the instructions at





More information about the SciPy-user mailing list