pvanand commited on
Commit
e82217e
·
verified ·
1 Parent(s): ee3a211

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -83,7 +83,7 @@ async def execute_code(session_token: str, code: str):
83
 
84
  output = []
85
  while True:
86
- msg = st.session_state.kernel_client.get_iopub_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':