You are not logged in.
Hi, I have installed ipython2 on my Arch machine,
but I am experiencing some issues with my matplotlib backend.
At the beginning of a notebook I run:
%matplotlib inlineand then when I run
%pylabthe following error message appears:
Using matplotlib backend: Qt5Agg
Populating the interactive namespace from numpy and matplotlib
ERROR:tornado.application:Exception in callback <functools.partial object at 0x7f2bbfc02f70>
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/tornado/ioloop.py", line 565, in _run_callback
ret = callback()
File "/usr/lib/python2.7/site-packages/tornado/stack_context.py", line 275, in null_wrapper
return fn(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/IPython/kernel/zmq/ipkernel.py", line 262, in enter_eventloop
self.eventloop(self)
File "/usr/lib/python2.7/site-packages/IPython/kernel/zmq/eventloops.py", line 71, in loop_qt5
return loop_qt4(kernel)
File "/usr/lib/python2.7/site-packages/IPython/kernel/zmq/eventloops.py", line 60, in loop_qt4
kernel.app = get_app_qt4([" "])
File "/usr/lib/python2.7/site-packages/IPython/lib/guisupport.py", line 111, in get_app_qt4
from IPython.external.qt_for_kernel import QtGui
File "/usr/lib/python2.7/site-packages/IPython/external/qt_for_kernel.py", line 84, in <module>
from IPython.external.qt import QtCore, QtGui, QtSvg, QT_API
File "/usr/lib/python2.7/site-packages/IPython/external/qt.py", line 17, in <module>
(QT_API, QT_API_PYSIDE, QT_API_PYQT))
RuntimeError: Invalid Qt API 'pyqt5', valid values are: 'pyside', 'pyqt'I have tried as well with ipython (python 3.4.2) and am experiencing the same issue.
Of course I have python-pyqt5 and python2-pyqt5 ias well as the matplotlib paccages installed (all using pacman)
On another laptop where I have ubuntu installed everything works just fine. I am not sure if I am missing some dependencies, it is a bug in the versions shipped with Arch,
or I simply need some configuration ![]()
I cannot make things work, can you give me some help?
Thanks in advance for the help!
Last edited by lucacerone (2015-01-14 01:54:14)
Offline
The issue is fixed by using "inline" for both matplotlib and pylab.
Marking as solved.
Offline