8000 point stdout and stderr to console.log · fskydev/pyscript@5edf76f · GitHub
[go: up one dir, main page]

Skip to content

Commit 5edf76f

Browse files
committed
point stdout and stderr to console.log
1 parent a2f2cd3 commit 5edf76f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyscriptjs/src/interpreter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,12 @@ 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
105+
stdout: console.log,
106+
stderr: console.log
106107
});
107108

108109
// now that we loaded, add additional convenience fuctions
109-
// pyodide.loadPackage(['matplotlib', 'numpy'])
110+
pyodide.loadPackage(['matplotlib', 'numpy'])
110111

111112
await pyodide.loadPackage("micropip");
112113
// await pyodide.runPythonAsync(`

0 commit comments

Comments
 (0)
0