From 0d87b723cdf59691cfed7b996d417ff8b7c099f8 Mon Sep 17 00:00:00 2001 From: Joshua James Venter <25530194@sun.ac.za> Date: Tue, 21 Nov 2023 11:50:27 +0200 Subject: [PATCH] cell_id extraction fix --- ipykernel/kernelbase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipykernel/kernelbase.py b/ipykernel/kernelbase.py index f8b3331b..37ed40e2 100644 --- a/ipykernel/kernelbase.py +++ b/ipykernel/kernelbase.py @@ -742,7 +742,7 @@ async def execute_request(self, stream, ident, parent): self._publish_execute_input(code, parent, self.execution_count) cell_meta = parent.get("metadata", {}) - cell_id = cell_meta.get("cellId") or {} + cell_id = cell_meta.get("cellId") # Check which parameters do_execute can accept accepts_params = _accepts_parameters(self.do_execute, ["cell_meta", "cell_id"])