diff --git a/scripts/prepare-pyodide.js b/scripts/prepare-pyodide.js index 3d7aef5aa..c14a5bf1b 100644 --- a/scripts/prepare-pyodide.js +++ b/scripts/prepare-pyodide.js @@ -6,7 +6,8 @@ const packages = [ 'matplotlib', 'scikit-learn', 'scipy', - 'regex' + 'regex', + 'seaborn' ]; import { loadPyodide } from 'pyodide'; diff --git a/src/lib/components/chat/Messages/CodeBlock.svelte b/src/lib/components/chat/Messages/CodeBlock.svelte index 93c9047e1..0adada519 100644 --- a/src/lib/components/chat/Messages/CodeBlock.svelte +++ b/src/lib/components/chat/Messages/CodeBlock.svelte @@ -186,7 +186,8 @@ code.includes('matplotlib') ? 'matplotlib' : null, code.includes('sklearn') ? 'scikit-learn' : null, code.includes('scipy') ? 'scipy' : null, - code.includes('re') ? 'regex' : null + code.includes('re') ? 'regex' : null, + code.includes('seaborn') ? 'seaborn' : null ].filter(Boolean); console.log(packages); @@ -235,7 +236,8 @@ __builtins__.input = input`); code.includes('pandas') ? 'pandas' : null, code.includes('sklearn') ? 'scikit-learn' : null, code.includes('scipy') ? 'scipy' : null, - code.includes('re') ? 'regex' : null + code.includes('re') ? 'regex' : null, + code.includes('seaborn') ? 'seaborn' : null ].filter(Boolean); console.log(packages);