Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0015c78 commit 468d5d4Copy full SHA for 468d5d4
1 file changed
IPython/external/qt_for_kernel.py
@@ -19,7 +19,7 @@
19
else: (matplotlib said nothing)
20
# this is the default path - nobody told us anything
21
try in this order:
22
- PyQt default version, PySide
+ PyQt default version, PySide, PyQt5
23
else:
24
use what QT_API says
25
@@ -83,8 +83,7 @@ def get_options():
83
qt_api = os.environ.get('QT_API', None)
84
if qt_api is None:
85
#no ETS variable. Ask mpl, then use default fallback path
86
- # TODO: should Qt5 be on the fallback path if there is no Qt4 API?
87
- return matplotlib_options(mpl) or [QT_API_PYQT_DEFAULT, QT_API_PYSIDE]
+ return matplotlib_options(mpl) or [QT_API_PYQT_DEFAULT, QT_API_PYSIDE, QT_API_PYQT5]
88
elif qt_api not in _qt_apis:
89
raise RuntimeError("Invalid Qt API %r, valid values are: %r" %
90
(qt_api, ', '.join(_qt_apis)))
0 commit comments