Skip to content

Commit

Permalink
fix: optimize package loading for matplotlib and pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
athrael-soju committed Dec 21, 2024
1 parent a4b694c commit 086a806
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/block-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(`
Expand Down

0 comments on commit 086a806

Please sign in to comment.