##// END OF EJS Templates
cleanup per review...
cleanup per review * remove extraneous 'd' variable in sqlitedb._convert_dict * don't use removed 'new' module in codeutil * add note about 3k-added kwonlyargcount in crash test * fix 'coupe' typo in client.client comment * rename ensure_bytes asbytes

File last commit:

r4149:272e128d
r4161:9830094a
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