Skip to content

Commit c89844f

Browse files
committed
Try sending replies direct
1 parent 20cdb0f commit c89844f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ipykernel/kernelbase.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ async def dispatch_shell(self, msg, /, stream=None, subshell_id: str | None = No
425425
except Exception:
426426
self.log.debug("Unable to signal in pre_handler_hook:", exc_info=True)
427427
try:
428-
result = handler(stream, idents, msg)
428+
#result = handler(stream, idents, msg)
429+
result = handler(self.shell_stream, idents, msg)
429430
if inspect.isawaitable(result):
430431
await result
431432
except Exception:

0 commit comments

Comments
 (0)