##// END OF EJS Templates
fix handling of unicode in KV loader...
fix handling of unicode in KV loader CaselessStrEnum had to be updated to typecheck basestring instead of str tests included

File last commit:

r4149:272e128d
r4162:48b0ab3f
Show More
qt_for_kernel.py
12 lines | 385 B | text/x-python | PythonLexer
""" Import Qt in a manner suitable for an IPython kernel.
"""
import sys
# Older versions of matplotlib do not support PyQt4 v2 APIs or PySide, so we
# cannot go through the preferred mechanism.
matplotlib = sys.modules.get('matplotlib')
if matplotlib and matplotlib.__version__ <= '1.0.1':
from PyQt4 import QtCore, QtGui
else:
from IPython.external.qt import QtCore, QtGui