Skip to content

Commit 17caf99

Browse files
committed
set default python bindings
1 parent 445153c commit 17caf99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ipykernel/eventloops.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ def loop_qt4(kernel):
125125
@register_integration('qt', 'qt5')
126126
def loop_qt5(kernel):
127127
"""Start a kernel with PyQt5 event loop integration."""
128+
if os.environ.get('QT_API', None) is None:
129+
os.environ['QT_API'] = 'pyqt5'
128130
return loop_qt4(kernel)
129131

130132

0 commit comments

Comments
 (0)