From 19b47faf7468e01eed4bef7f4b287a0c20b2337b 2019-02-21 01:36:06 From: Matthias Bussonnier Date: 2019-02-21 01:36:06 Subject: [PATCH] Merge pull request #11613 from flutefreak7/master Fixed PyQt 5.11 backwards incompatibility causing sip import failure --- diff --git a/IPython/external/qt_loaders.py b/IPython/external/qt_loaders.py index ef6b898..a27612d 100644 --- a/IPython/external/qt_loaders.py +++ b/IPython/external/qt_loaders.py @@ -217,10 +217,9 @@ def import_pyqt5(): ImportErrors rasied within this function are non-recoverable """ - import sip from PyQt5 import QtCore, QtSvg, QtWidgets, QtGui - + # Alias PyQt-specific functions for PySide compatibility. QtCore.Signal = QtCore.pyqtSignal QtCore.Slot = QtCore.pyqtSlot