New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'FigureCanvasAgg' object has no attribute 'invalidate' #4156
Comments
In the StackOverflow question @tacaswell asked for this:
|
It looks like something is confused about which backend is in use - the last frame of the traceback is in @tacaswell we're aiming to release IPython 3.0 on Friday, so if the bug is in IPython code, it would be good to know that quickly, to see if we can slip a simple fix in. |
I don't have (easy) access to a mac to try and reproduce this. @dmnd What are the versions of everything involved? Does this happen every time? Does this happen if you start with a fresh notebook? Do you have any auto-imports for python start up that import pyplot? I don't think we claim to support switching which interactive backend pyplot is using once it has been imported. One thing to do might to have the magic watch for the warning that comes out if you call |
@tacaswell thanks for your help! I think this is because I was starting the notebook with I noticed now that there is a warning emitted when you use |
We've gone one better - in version 3 the notebook refuses to start with @tacaswell I think IPython aims to support at least switching between the inline backend and a single interactive GUI backend within a session, so there may still be something to work out here. |
😌 |
@takluyver I am utterly swamped today and tomorrow, I don't have any bandwidth to devote to this. |
Switching back and forth between the OSX and inline backend with this example works as expected for me. Python 2.7.9 |
OK, we'll leave the issue open on our side, but we won't hold 3.0 up for it. |
I'm not sure if this is an iPython or matplotlib or pandas issue. But running this seemingly correct looking code gives a stacktrace. I saw a StackOverflow question about it, but no bug had been reported.
The plot is actually generated, but there's a big stacktrace too:
Here's what I have installed:
I also reported this as ipython/ipython#7864
The text was updated successfully, but these errors were encountered: