Ipython Qtconsole
This post record how I setup ipython qtconsole and what problem I encountered.
qtconsole
need PyQt4 or PySide installed, here I choose PyQt4.
to install PyQt4, need to setup SIP first, these two need install from source code.
ps. it is recommend to setup python in virtual env with pyenv first.
dependency
Install some dev packages for building source code.
1
|
|
SIP
download source code
1 2 3 |
|
PyQt4
this is the tricky part. Since current version of PyQt4 is 4.10
, which broken with ipython.
I found someone with similiar problem spyderlib issues,
it says ipython is working on it, so I clone the dev version of ipython from github, but it still not working. I endup
choose previous version of PyQt4 4.9.4
and it works!!
1 2 3 |
|
if you have Qt4 and Qt5 both installed, you maybe have problem when running configure.py
,
because the enviroment is set for Qt5 not Qt4, we need to tell python to use Qt4 explicitly.
1
|
|
and run configure.py
with
1
|
|
reference
installing-pyqt4-and-sip-in-a-virtual-environment-ubuntu-1204