From 8086199395f1dc069c46582e2a7373b00a25b8b8 Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Fri, 30 Jan 2026 11:34:55 +0000 Subject: [PATCH] Temporarily revert "Test changing base method to async after (#1464)" This reverts commit 31ec38aaeef5cbb53a17e1885c1915d487339a1c. --- ipykernel/kernelbase.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ipykernel/kernelbase.py b/ipykernel/kernelbase.py index 7fa1fb9dc..05bc10e90 100644 --- a/ipykernel/kernelbase.py +++ b/ipykernel/kernelbase.py @@ -869,7 +869,7 @@ async def execute_request(self, stream, ident, parent): subshell_id = parent["header"].get("subshell_id") self._abort_queues(subshell_id) - async def do_execute( + def do_execute( self, code, silent, @@ -904,7 +904,7 @@ async def complete_request(self, stream, ident, parent): matches = json_clean(matches) self.session.send(stream, "complete_reply", matches, parent, ident) - async def do_complete(self, code, cursor_pos): + def do_complete(self, code, cursor_pos): """Override in subclasses to find completions.""" return { "matches": [], @@ -940,7 +940,7 @@ async def inspect_request(self, stream, ident, parent): msg = self.session.send(stream, "inspect_reply", reply_content, parent, ident) self.log.debug("%s", msg) - async def do_inspect(self, code, cursor_pos, detail_level=0, omit_sections=()): + def do_inspect(self, code, cursor_pos, detail_level=0, omit_sections=()): """Override in subclasses to allow introspection.""" return {"status": "ok", "data": {}, "metadata": {}, "found": False} @@ -964,7 +964,7 @@ async def history_request(self, stream, ident, parent): msg = self.session.send(stream, "history_reply", reply_content, parent, ident) self.log.debug("%s", msg) - async def do_history( + def do_history( self, hist_access_type, output, @@ -1104,7 +1104,7 @@ async def shutdown_request(self, stream, ident, parent): shell_io_loop = self.shell_stream.io_loop shell_io_loop.add_callback(shell_io_loop.stop) - async def do_shutdown(self, restart): + def do_shutdown(self, restart): """Override in subclasses to do things when the frontend shuts down the kernel. """ @@ -1130,7 +1130,7 @@ async def is_complete_request(self, stream, ident, parent): reply_msg = self.session.send(stream, "is_complete_reply", reply_content, parent, ident) self.log.debug("%s", reply_msg) - async def do_is_complete(self, code): + def do_is_complete(self, code): """Override in subclasses to find completions.""" return {"status": "unknown"}