Skip to content

Commit

Permalink
clear execute metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Darshan808 committed Jan 20, 2025
1 parent 535e241 commit 4b0ed4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jupyter_server_nbmodel/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ async def _execute_snippet(
del ycell["outputs"][:]
ycell["execution_count"] = None
ycell["execution_state"] = "running"
if "execution" in ycell["metadata"]:
del ycell["metadata"]["execution"]
if metadata.get("record_timing", False):
time_info = ycell["metadata"].get("execution", {})
time_info["shell.execute_reply.started"] = execution_start_time
Expand Down

0 comments on commit 4b0ed4b

Please sign in to comment.