Skip to content

Commit

Permalink
Allow for top-level await in Python code
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Jul 25, 2024
1 parent 91aad95 commit 61d85e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _extensions/live/resources/live-runtime.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion live-runtime/src/scripts/Python/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
with capture.capture_output() as output:
value = None
try:
value = pyodide.code.eval_code(code, globals = environment) # type: ignore[attr-defined]
value = await pyodide.code.eval_code_async(code, globals = environment) # type: ignore[attr-defined]
except Exception as err:
print(err, file=sys.stderr)
if (value is not None):
Expand Down

0 comments on commit 61d85e5

Please sign in to comment.