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 79822e9 commit 2dbe089Copy full SHA for 2dbe089
ipykernel/inprocess/client.py
@@ -11,6 +11,8 @@
11
# Imports
12
#-----------------------------------------------------------------------------
13
14
+import asyncio
15
+
16
# IPython imports
17
from traitlets import Type, Instance, default
18
from jupyter_client.clientabc import KernelClientABC
@@ -173,7 +175,7 @@ def _dispatch_to_kernel(self, msg):
173
175
stream = kernel.shell_stream
174
176
self.session.send(stream, msg)
177
msg_parts = stream.recv_multipart()
- kernel.dispatch_shell(msg_parts)
178
+ asyncio.get_event_loop().call_later(0, kernel.dispatch_shell(msg_parts))
179
180
idents, reply_msg = self.session.recv(stream, copy=False)
181
self.shell_channel.call_handlers_later(reply_msg)
0 commit comments