Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03da071

Browse files
committed
redirect default output to console.log
1 parent 2b7cbe0 commit 03da071

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyscriptjs/src/interpreter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ let loadInterpreter = async function(): any {
102102
/* @ts-ignore */
103103
let pyodide = await loadPyodide({
104104
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.19.0/full/",
105+
stdout: console.log
105106
});
106107

107108
// now that we loaded, add additional convenience fuctions

0 commit comments

Comments
 (0)