##// END OF EJS Templates
update '-pylab' deprecation message to new pattern.
update '-pylab' deprecation message to new pattern.

File last commit:

r4149:272e128d
r4190:b511f6ff
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