From 03da071a631df9bb0ca39a6a2476e1c8459d6ad6 Mon Sep 17 00:00:00 2001 From: Fabio Pliger Date: Mon, 28 Mar 2022 17:59:19 -0500 Subject: [PATCH] redirect default output to console.log --- pyscriptjs/src/interpreter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/pyscriptjs/src/interpreter.ts b/pyscriptjs/src/interpreter.ts index 0e07036..61241eb 100644 --- a/pyscriptjs/src/interpreter.ts +++ b/pyscriptjs/src/interpreter.ts @@ -102,6 +102,7 @@ let loadInterpreter = async function(): any { /* @ts-ignore */ let pyodide = await loadPyodide({ indexURL: "https://cdn.jsdelivr.net/pyodide/v0.19.0/full/", + stdout: console.log }); // now that we loaded, add additional convenience fuctions