Skip to content

Commit e043061

Browse files
committed
Remove setting of eventloop function
If the InProcessInteractiveShell version of `enable_gui` calls the parent function in eventloops.py, it initializes `kernel.eventloop`, whereas it should be `None` in the InProcessKernel. This triggers exceptions in the kernel's `entering_eventloop` function.
1 parent 81a640b commit e043061

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ipykernel/inprocess/ipkernel.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,10 @@ class InProcessInteractiveShell(ZMQInteractiveShell):
175175

176176
def enable_gui(self, gui=None):
177177
"""Enable GUI integration for the kernel."""
178-
from ipykernel.eventloops import enable_gui
179178
if not gui:
180179
gui = self.kernel.gui
181-
enable_gui(gui, kernel=self.kernel)
182180
self.active_eventloop = gui
183181

184-
185182
def enable_matplotlib(self, gui=None):
186183
"""Enable matplotlib integration for the kernel."""
187184
if not gui:

0 commit comments

Comments
 (0)