Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -83,7 +83,7 @@ async def execute_code(session_token: str, code: str):
|
|
83 |
|
84 |
output = []
|
85 |
while True:
|
86 |
-
msg =
|
87 |
if msg['msg_type'] == 'status' and msg['content']['execution_state'] == 'idle':
|
88 |
break
|
89 |
elif msg['msg_type'] == 'error':
|
|
|
83 |
|
84 |
output = []
|
85 |
while True:
|
86 |
+
msg = kc.get_iopub_msg()
|
87 |
if msg['msg_type'] == 'status' and msg['content']['execution_state'] == 'idle':
|
88 |
break
|
89 |
elif msg['msg_type'] == 'error':
|