Skip to content

Commit f3833b7

Browse files
committed
Better async server
1 parent b26054c commit f3833b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interpreter/core/async_core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ def respond(self, run_code=None):
8989
return
9090

9191
if self.print:
92-
if chunk["type"] in ["code", "output"]:
92+
if chunk["type"] in ["code", "console"]:
9393
if "start" in chunk:
94-
print("\n\n```" + chunk["format"], flush=True)
94+
print("\n\n------------\n\n```" + chunk["format"], flush=True)
9595
if "end" in chunk:
96-
print("\n```", flush=True)
96+
print("\n```\n\n------------\n\n", flush=True)
9797
print(chunk.get("content", ""), end="", flush=True)
9898

9999
self.output_queue.sync_q.put(chunk)

0 commit comments

Comments
 (0)