I'm using matplotlib version 1.4.2 on linux and am having trouble getting key
event
callbacks when using the nbagg backend in an ipython notebook (i've tried in
firefox and chromium).
The key press events seem to not be processed (no matter what key I try to
press). This code does work with the qt backend.
If that's the case, the release notes should probably make that clear. Right now at http://matplotlib.org/users/whats_new.html#the-nbagg-backend it says: "Phil Elson added a new backend, named “nbagg”, which enables interactive figures in a live IPython notebook session." The word "interactive" certainly could lead people to believe that the backend is, in fact, interactive.
···
On 2014-12-04 15:40, Joe Kington wrote:
Nbagg is non-interactive, similar to Agg. No events other than draw events
are supported, as far as I know.
--
Brendan Barnwell
"Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail."
--author unknown
Woops! You’re absolutely right! I was completely confused!
I mixed up the new “nbagg” backend with the way ipython notebooks used to display matplotlib figures. The nbagg backend is indeed interactive (and I have no idea why key press callbacks aren’t supported, then).
This is what happens when I reply to e-mail without putting much thought into it.
Thanks!
-Joe
···
On Thu, Dec 4, 2014 at 8:58 PM, Brendan Barnwell <brenbarn@…4605…> wrote:
On 2014-12-04 15:40, Joe Kington wrote:
Nbagg is non-interactive, similar to Agg. No events other than draw events
are supported, as far as I know.
If that's the case, the release notes should probably make that clear.