After launching ipython
from mayavi import mlab
You can do it when you can reproduce it by typing. 'Qstring' has already been set to version 1 You can see a message like this.
I'm not sure, but it seems that the version of Qt (one of the libraries that controls the GUI) is different between mne (mayavi used by) and python itself.
IPython /init.py in my environment To the beginning of (I am from future import absolute_import)
import sip
sip.setapi('QDate', 2)
sip.setapi('QDateTime', 2)
sip.setapi('QString', 2)
sip.setapi('QVariant',2)
sip.setapi('QTextStream',2)
sip.setapi('QTime',2)
sip.setapi('QUrl',2)
After adding, it works fine.
ipython --matploblib=qt
But it worked.
If'Q somehow' appears, I think it will work if you write it in the same way.
Recommended Posts