"ipython -pylab" fails but "from pylab import plot" works on mac?

Hi all,

It's exactly as said. I am using OS 10.6

If I use ipython -pylab and later try to plot anything, the GUI for plotting launches and I just get a beachball.

However, if I do ipython and then import plot, I can do a plot with no problem.

I did a search but came up with nothing. I have this problem whether I use apple python or the python2.7 downloaded from python.org.

I am new to the whole terminal/programming thing. As you can imagine, everything is very difficult. Any help is appreciated

God bless,
Matthias

Most likely, ipython is trying to import a different (broken?) version of matplotlib than what python finds automatically. I would try re-installing ipython.

Ben Root

···

On Thu, Feb 17, 2011 at 3:56 AM, Matthias Wong <arkanisw@…287…> wrote:

Hi all,

It’s exactly as said. I am using OS 10.6

If I use ipython -pylab and later try to plot anything, the GUI for plotting launches and I just get a beachball.

However, if I do ipython and then import plot, I can do a plot with no problem.

I did a search but came up with nothing. I have this problem whether I use apple python or the python2.7 downloaded from python.org.

I am new to the whole terminal/programming thing. As you can imagine, everything is very difficult. Any help is appreciated

God bless,

Matthias

Matthias Wong, on 2011-02-17 20:56, wrote:

Hi all,

It's exactly as said. I am using OS 10.6

If I use ipython -pylab and later try to plot anything, the GUI for plotting launches and I just get a beachball.

However, if I do ipython and then import plot, I can do a plot with no problem.

I did a search but came up with nothing. I have this problem whether I use apple python or the python2.7 downloaded from python.org.

I am new to the whole terminal/programming thing. As you can imagine, everything is very difficult. Any help is appreciated

Hi Matthias,

can you post the results of running the following:

import matplotlib
import IPython
print matplotlib.get_backend()
print matplotlib.__version__
print IPython.__version__

If you are trying IPython 0.11, this is a known issue as of 3
months ago [1].

There were also similar issues reported with using GTK [2], which
I believe were addressed in [3], and are waiting to be merged.

1. Issues · ipython/ipython · GitHub
2. Issues · ipython/ipython · GitHub
3. Fix185 (take two) by ivanov · Pull Request #237 · ipython/ipython · GitHub

best,

···

--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7