diff --git a/ipykernel/ipkernel.py b/ipykernel/ipkernel.py index dabb0c44..db83d986 100644 --- a/ipykernel/ipkernel.py +++ b/ipykernel/ipkernel.py @@ -382,7 +382,7 @@ async def run_cell(*args, **kwargs): store_history=store_history, silent=silent, ) - if with_cell_id: + if with_cell_id and with_cell_id["cell_id"]: kwargs.update(cell_id=cell_id) if should_run_async(