Python shell despite no IPython problems

Sorry Brenton, I meant for my reply to go to the entire list.

Anyway, in your response, I take it that you meant to say that the window appears and disappears immediately. Yes?

What happens if you restart the Python interpreter and type the following?

import matplotlib


import matplotlib.pyplot as plt


Does my first example work fine in the IPython interpreter? (Sorry, I’m not on my Windows machine right now, so I can’t tell you if I’m seeing the same problem.)



On Sat, Mar 14, 2015 at 8:21 AM, Brenton Horne <brentonhorne77@…287…> wrote:

Yes, a popup window appears but it appears immediately after it


  On 14/03/2015 10:03 PM, Ryan Nelson



      Unfortunately, those particular examples are out of date.

First of all, I would not recommend using pylab at all – and
I think that many other folks will give you the same advice.
(For reasons that I can describe later if you are interested.)

      IPython is a much different beast than the vanilla Python

interpreter, especially in how it handles GUI stuff. Maybe you
could temporarily move the matplotlibrc file that you created,
and try the following from a regular Python session:

import matplotlib


import matplotlib.pyplot as plt



      The second line is telling MPL what backend to use. (You

can set this in the rc file later, but let’s make sure this
isn’t the problem for now.) The third line imports the pyplot
module, which is recommended over pylab. The fourth line is
turning on interactive plotting. Once you execute the plot
command on the fifth line, a popup window should appear. Yes?


      On Sat, Mar 14, 2015 at 5:17 AM,

Brenton Horne <brentonhorne77@…287…>

          Oh and I have made

the mentioned customizations to matplotlibrc
(although the TkAgg line was already present). My python
version is 2.7.9 and matplotlib version is 1.4.3.

On 14/03/2015 7:14 PM, Brenton Horne wrote:


              I am on Windows 7 64 bit SP1 and I installed

matplotlib via wheels files here
but now whenever I execute plotting commands from the
python shell (e.g., the ‘hi mom’ example here )
it seems like as though some window is trying to pop
up but nothing does. Whereas if I try the the hist
example here ( )
in IPython I get a graph pop-up that seems fine.

              Thanks for your time,


        Dive into the World of Parallel Programming The Go Parallel

Website, sponsored

        by Intel and developed in partnership with Slashdot Media,

is your hub for all

        things parallel software development, from weekly thought

leadership blogs to

        news, videos, case studies, tutorials and more. Take a look

and join the

        conversation now. [](


        Matplotlib-users mailing list