My IPython shell becomes sluggish after instantiating the QApplication object. For example, even from the very beginning, the following code will make my shell slow enough when I have to restart it.
from PyQt4 import QtGui
app = QtGui.QApplication([])
Once this is sent, my typing will be 2 or 3 seconds behind. My computer is not fantastic, but I still have a lot of memory available, and this is just a python shell that seems to be affected. I tried both the default python interpreter and the ipython interpreter with the same results. Any suggestions?
Update. I also tried running the standalone pyqt "Hello World" program in ipython using the %runmagic command , and when the control was returned to ipython after I closed the Hello World window that appeared, it had the same effect; the shell became lethargic, and my text input began for 2-3 seconds.
source
share