Skip to content

Commit

Permalink
refac: include packages
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed May 18, 2024
1 parent 7f90d81 commit 8766d26
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lib/components/chat/Messages/CodeBlock.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@
code.includes('bs4') ? 'beautifulsoup4' : null,
code.includes('numpy') ? 'numpy' : null,
code.includes('pandas') ? 'pandas' : null,
code.includes('matplotlib') ? 'matplotlib' : null
code.includes('matplotlib') ? 'matplotlib' : null,
code.includes('scikit-learn') ? 'sklearn' : null,
code.includes('scipy') ? 'scipy' : null,
code.includes('re') ? 'regex' : null
].filter(Boolean);
console.log(packages);
Expand Down Expand Up @@ -230,7 +233,9 @@ __builtins__.input = input`);
code.includes('bs4') ? 'beautifulsoup4' : null,
code.includes('numpy') ? 'numpy' : null,
code.includes('pandas') ? 'pandas' : null,
code.includes('matplotlib') ? 'matplotlib' : null
code.includes('scikit-learn') ? 'sklearn' : null,
code.includes('scipy') ? 'scipy' : null,
code.includes('re') ? 'regex' : null
].filter(Boolean);
const pyodideWorker = new PyodideWorker();
Expand Down

0 comments on commit 8766d26

Please sign in to comment.