We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
execution_state
1 parent 0a6c683 commit ef8181cCopy full SHA for ef8181c
jupyter_server_nbmodel/handlers.py
@@ -226,6 +226,7 @@ async def _execute_snippet(
226
with ycell.doc.transaction():
227
del ycell["outputs"][:]
228
ycell["execution_count"] = None
229
+ ycell["execution_state"] = "running"
230
231
outputs = []
232
@@ -243,7 +244,9 @@ async def _execute_snippet(
243
244
reply_content = reply["content"]
245
246
if ycell is not None:
- ycell["execution_count"] = reply_content.get("execution_count")
247
+ with ycell.doc.transaction():
248
+ ycell["execution_count"] = reply_content.get("execution_count")
249
+ ycell["execution_state"] = "idle"
250
251
return {
252
"status": reply_content["status"],
0 commit comments