Reputation: 31
I am trying to enable the python notebook in emacs. I am following the instruction from this page: https://realpython.com/blog/python/emacs-the-best-python-editor/
When I tried to do "%matplotlib inline" so that I can show the plot inline, I got the following errors:
"UnknownBackend: No event loop integration for u'inline'. Supported event loops are: qt, qt4, qt5, gtk, gtk2, gtk3, tk, wx, pyglet, glut, OSX"
My emacs is 24.4 and jupyter notebook version is 4.3
Thanks
Upvotes: 3
Views: 5678
Reputation: 478
If you are running matplotlib on osx this helped resolve my problem:
matplotlib.use('TkAgg')
directly after the import of matplotlib.(comments%matplotlib osx
I had to call %matplotlib osx
instead of %matplotlib inline
one of the comment mentiond it
After that it worked.
Upvotes: 3