Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Getting ipython notebook to plot inline
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Frank Franklin  
View profile  
 More options Oct 9 2012, 2:02 pm
Newsgroups: comp.lang.python
From: Frank Franklin <fr4nkl...@gmail.com>
Date: Tue, 9 Oct 2012 11:02:17 -0700 (PDT)
Local: Tues, Oct 9 2012 2:02 pm
Subject: Getting ipython notebook to plot inline
I've just managed to install ipython and get it to run by typing ipython notebook --pylab=inline

Now I'm getting the following error when I try to plot something in ipython notebook:
    AttributeError: 'module' object has no attribute 'FigureCanvas'

I've tried using imports to make this work:
    import matplotlib.pyplot as plt
    import numpy as np
    x = np.arange(0, 5, 0.1);
    y = np.sin(x)
    plt.plot(x, y)

But for some reason I still get this error. Anybody else know what's going on here? All of the print statements I've done before have worked, and I actually got my plots to work when I didn't set --pylab=inline, though they came up in a separate window and I want them to stay in the ipython notebook.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Getting ipython notebook to plot inline [updated]" by Frank Franklin
Frank Franklin  
View profile  
 More options Oct 11 2012, 10:45 am
Newsgroups: comp.lang.python
From: Frank Franklin <fr4nkl...@gmail.com>
Date: Thu, 11 Oct 2012 07:45:12 -0700 (PDT)
Local: Thurs, Oct 11 2012 10:45 am
Subject: Re: Getting ipython notebook to plot inline [updated]
Ok, so just to add to this, there is no problem plotting when I used the following command in my terminal to start the notebook:
    ipython notebook
The only problem is that this plots my figures outside of the notebook page, and I really want to get everything into the notebook, since that's the point of the install.

but for some reason when I add the --pylab=inline that all the tutorials mention I get the AttributeError I mentioned before. I'm starting to wonder if this is a problem with my machine setup, if I'm missing something else that ipython notebook needs to do inline plotting.

Any help on this would be appreciated -- at this point I'm banging my head against the wall and solution doesn't seem to have surfaced through googling.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »