From aaadbe4d29afca4a5c49dd6c80ab7e93dd7c3953 Mon Sep 17 00:00:00 2001 From: Debanjum Date: Wed, 20 Nov 2024 14:24:50 -0800 Subject: [PATCH] Include plotly in code terrarium sanbox for prettier charts --- src/services/python-interpreter/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/python-interpreter/service.ts b/src/services/python-interpreter/service.ts index 537344b..2209775 100644 --- a/src/services/python-interpreter/service.ts +++ b/src/services/python-interpreter/service.ts @@ -88,7 +88,7 @@ export class PyodidePythonEnvironment implements PythonEnvironment { pyodide.FS.writeFile(pyodide?.PATH.join2(pythonEnvironmentHomeDir, f.filename), f.byte_data); }) // load the packages we commonly use to avoid the latency hit during the user req - await pyodide.loadPackage(["numpy", "matplotlib", "pandas"]) + await pyodide.loadPackage(["numpy", "matplotlib", "pandas", "plotly"]) // set interrupt buffer to allow for termination pyodide.setInterruptBuffer(this.interrupt);