pvanand commited on
Commit
f7a6f8b
1 Parent(s): 8bf6cc4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -90,7 +90,7 @@ async def execute_code(session_token: str, code: str):
90
  if datetime.now() > timeout:
91
  raise TimeoutError("Code execution timed out.")
92
 
93
- msg = st.session_state.kernel_client.get_iopub_msg()
94
  if msg['msg_type'] == 'status' and msg['content']['execution_state'] == 'idle':
95
  break
96
  elif msg['msg_type'] == 'error':
 
90
  if datetime.now() > timeout:
91
  raise TimeoutError("Code execution timed out.")
92
 
93
+ msg = kc.get_iopub_msg()
94
  if msg['msg_type'] == 'status' and msg['content']['execution_state'] == 'idle':
95
  break
96
  elif msg['msg_type'] == 'error':