pyodide.eval_code¶
-
pyodide.
eval_code
(code: str, ns: Dict[str, Any]) → None¶ Runs a code string.
- Parameters
code – the Python code to run.
ns – locals() or globals() context where to execute code.
- Returns
If the last nonwhitespace character of code is a semicolon return None.
If the last statement is an expression, return the
result of the expression.