ipython, numpy, matplotlib, scipy
![](https://secure.gravatar.com/avatar/7a9d886939c7c39381bc2c7c5931da5d.jpg?s=120&d=mm&r=g)
Hello list, what is the best way to use ipython, numpy, matplotlib, and scipy together? I start ipython using ipython --pylab in order to get an interactive matplotlib and pull numpy and matplotlib functions to the workspace. But some functions like fft, ifft, ... are reimplemented in scipy. I have read, that it is proposed to use from scipy import * for interactive shells. How does this interefere with --pylab? Thank you for you advice. Wolfgang
![](https://secure.gravatar.com/avatar/ad13088a623822caf74e635a68a55eae.jpg?s=120&d=mm&r=g)
On Fri, Dec 2, 2011 at 2:41 PM, Wolfgang Mader <Wolfgang.Mader@fdm.uni-freiburg.de> wrote:
Hello list,
what is the best way to use ipython, numpy, matplotlib, and scipy together?
I start ipython using
ipython --pylab
in order to get an interactive matplotlib and pull numpy and matplotlib functions to the workspace. But some functions like fft, ifft, ... are reimplemented in scipy. I have read, that it is proposed to use
from scipy import *
for interactive shells. How does this interefere with --pylab?
Sorry, I don't know the answer, but even in interactive work I would recommend using namespaces or explicit imports. I find this "matlabism" of using no namespaces very confusing. (And it makes it harder converting interactive code to clean scripts.) (And I'm not a representative scipy user, and it's only the last of the Zen.) Josef "Where did the behavior of this function come from, I thought this was something else."
Thank you for you advice. Wolfgang _______________________________________________ SciPy-User mailing list SciPy-User@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-user
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
On Fri, Dec 2, 2011 at 19:41, Wolfgang Mader <Wolfgang.Mader@fdm.uni-freiburg.de> wrote:
Hello list,
what is the best way to use ipython, numpy, matplotlib, and scipy together?
I start ipython using
ipython --pylab
in order to get an interactive matplotlib and pull numpy and matplotlib functions to the workspace. But some functions like fft, ifft, ... are reimplemented in scipy. I have read, that it is proposed to use
from scipy import *
for interactive shells. How does this interefere with --pylab?
It does nothing that you want. "from scipy import *" does not import anything from its subpackages. Just pretend that it doesn't exist. It exists only for backwards compatibility. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
participants (3)
-
josef.pktd@gmail.com
-
Robert Kern
-
Wolfgang Mader