<div dir="ltr">That seems like a reasonable hypothesis. I am not too sure how to check if matplotlib's default backend to has been recently set to qt5agg, but I will try. <br>In the meantime, I can confirm that <br>ipython2 qtconsole --pylab qt4<br>ipython2 qtconsole --pylab inline<br>work fine. <br>Thanks!<br>-m<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 30, 2015 at 12:09 AM, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com" target="_blank">takowl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I'd hazard a guess that Arch has set matplotlib's default backend to qt5agg, but that's not supported by the released version of IPython. 3.0 and 2.4 will support Qt 5.<br><br></div>In the meantime, you should be able to work around it by specifying another backend, e.g. --pylab qt4 or --pylab inline.<br><br></div>Thomas<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 29 January 2015 at 15:59, Mark Andrews <span dir="ltr"><<a href="mailto:mjandrews.net@gmail.com" target="_blank">mjandrews.net@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">After a recent upgrade on arch linux (where I have been using ipython for years), I just encountered the following problem when I start ipython (2.3.1) with "ipython2 qtconsole --pylab"<br><br><p style="margin:0px;text-indent:0px">Using matplotlib backend: Qt5Agg</p>
<p style="margin:0px;text-indent:0px">ERROR:tornado.application:Exception in callback <functools.partial object at 0x7fcac006c838></p>
<p style="margin:0px;text-indent:0px">Traceback (most recent call last):</p>
<p style="margin:0px;text-indent:0px">  File "/usr/lib/python2.7/site-packages/tornado/ioloop.py", line 565, in _run_callback</p>
<p style="margin:0px;text-indent:0px">    ret = callback()</p>
<p style="margin:0px;text-indent:0px">  File "/usr/lib/python2.7/site-packages/tornado/stack_context.py", line 275, in null_wrapper</p>
<p style="margin:0px;text-indent:0px">    return fn(*args, **kwargs)</p>
<p style="margin:0px;text-indent:0px">  File "/usr/lib/python2.7/site-packages/IPython/kernel/zmq/ipkernel.py", line 262, in enter_eventloop</p>
<p style="margin:0px;text-indent:0px">    self.eventloop(self)</p>
<p style="margin:0px;text-indent:0px">  File "/usr/lib/python2.7/site-packages/IPython/kernel/zmq/eventloops.py", line 71, in loop_qt5</p>
<p style="margin:0px;text-indent:0px">    return loop_qt4(kernel)</p>
<p style="margin:0px;text-indent:0px">  File "/usr/lib/python2.7/site-packages/IPython/kernel/zmq/eventloops.py", line 60, in loop_qt4</p>
<p style="margin:0px;text-indent:0px">    kernel.app = get_app_qt4([" "])</p>
<p style="margin:0px;text-indent:0px">  File "/usr/lib/python2.7/site-packages/IPython/lib/guisupport.py", line 111, in get_app_qt4</p>
<p style="margin:0px;text-indent:0px">    from IPython.external.qt_for_kernel import QtGui</p>
<p style="margin:0px;text-indent:0px">  File "/usr/lib/python2.7/site-packages/IPython/external/qt_for_kernel.py", line 84, in <module></p>
<p style="margin:0px;text-indent:0px">    from IPython.external.qt import QtCore, QtGui, QtSvg, QT_API</p>
<p style="margin:0px;text-indent:0px">  File "/usr/lib/python2.7/site-packages/IPython/external/qt.py", line 17, in <module></p>
<p style="margin:0px;text-indent:0px">    (QT_API, QT_API_PYSIDE, QT_API_PYQT))</p>
<p style="margin:0px;text-indent:0px">RuntimeError: Invalid Qt API 'pyqt5', valid values are: 'pyside', 'pyqt'</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">If I start with "ipython2 qtconsole" and then do <br></p><br>%matplotlib inline 
<p style="margin:0px;text-indent:0px"><span style="color:rgb(0,0,128)"></span><span style="font-weight:600;color:rgb(0,0,128)"></span><span style="color:rgb(0,0,128)"></span>import matplotlib.pyplot</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">then plotting works fine. <br></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">I am guessing that this is something that arises only with arch, and has something to do with its packages for python Qt bindings. <br></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Here are some of other relevant packages I am using<br></p><p style="margin:0px;text-indent:0px">python2-matplotlib 1.4.2-3</p><p style="margin:0px;text-indent:0px">python2-pyqt4 4.11.3-1<br>python2-pyqt5 5.4.0-2</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">It is not a major hassle but it would be good know what is causing this. <br></p><span><font color="#888888"><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">-m</p></font></span><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">ps. ipython2 is arch linux's name for ipython 2.x, while the name ipython is for ipython 3.x.<br></p></div>
<br></div></div>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>