Changeset fef38e8 in sasview for src/sas/qtgui/Utilities/IPythonWidget.py
- Timestamp:
- Sep 13, 2017 6:24:34 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 3c8242c
- Parents:
- 9909967
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/IPythonWidget.py
r985ad94 rfef38e8 1 from PyQt4 import QtCore, QtGui, QtSvg 2 1 3 def new_load_qt(api_options): 2 from PyQt4 import QtCore, QtGui, QtSvg3 4 return QtCore, QtGui, QtSvg, 'pyqt' 4 5 5 6 def qtconsole_new_load_qt(api_options): 6 from PyQt4 import QtCore, QtGui, QtSvg7 8 7 # Alias PyQt-specific functions for PySide compatibility. 9 8 QtCore.Signal = QtCore.pyqtSignal … … 11 10 return QtCore, QtGui, QtSvg, 'pyqt' 12 11 12 from IPython.external import qt_loaders 13 from qtconsole import qt_loaders as qtconsole_qt_loaders 13 14 # Do some monkey patching to satisfy pyinstaller complaining 14 15 # about pyside/pyqt confusion 15 from IPython.external import qt_loaders16 16 qt_loaders.load_qt = new_load_qt 17 18 from qtconsole import qt_loaders as qtconsole_qt_loaders19 17 qtconsole_qt_loaders.load_qt = qtconsole_new_load_qt 20 18 21 22 19 from qtconsole.rich_jupyter_widget import RichJupyterWidget 23 from qtconsole.inprocess import QtInProcessKernelManager24 from IPython.lib import guisupport25 20 26 21 MODULES_TO_IMPORT = [ … … 32 27 def __init__(self, parent=None, **kwargs): 33 28 super(self.__class__, self).__init__(parent) 29 from qtconsole.inprocess import QtInProcessKernelManager 30 from IPython.lib import guisupport 34 31 app = guisupport.get_app_qt4() 35 32 36 # Create an in-process kernel33 # Create an in-process kernel 37 34 kernel_manager = QtInProcessKernelManager() 38 35 kernel_manager.start_kernel()
Note: See TracChangeset
for help on using the changeset viewer.