diff --git a/components/block-actions.tsx b/components/block-actions.tsx index 942b13cf2..e5c4af45e 100644 --- a/components/block-actions.tsx +++ b/components/block-actions.tsx @@ -62,8 +62,7 @@ export function RunCodeButton({ } // Load matplotlib package first, then pandas - await currentPyodideInstance.loadPackage('matplotlib'); - await currentPyodideInstance.loadPackage('pandas'); + await currentPyodideInstance.loadPackage(['matplotlib', 'pandas']); // Setup matplotlib with our custom show function that supports both formats await currentPyodideInstance.runPythonAsync(`