mirror of
https://github.com/open-webui/open-webui
synced 2025-04-24 16:32:11 +00:00
feat: seaborn added to pyodide
Co-Authored-By: Silentoplayz <50341825+Silentoplayz@users.noreply.github.com>
This commit is contained in:
parent
a5fa881d4a
commit
5961fc84f4
@ -6,7 +6,8 @@ const packages = [
|
|||||||
'matplotlib',
|
'matplotlib',
|
||||||
'scikit-learn',
|
'scikit-learn',
|
||||||
'scipy',
|
'scipy',
|
||||||
'regex'
|
'regex',
|
||||||
|
'seaborn'
|
||||||
];
|
];
|
||||||
|
|
||||||
import { loadPyodide } from 'pyodide';
|
import { loadPyodide } from 'pyodide';
|
||||||
|
@ -186,7 +186,8 @@
|
|||||||
code.includes('matplotlib') ? 'matplotlib' : null,
|
code.includes('matplotlib') ? 'matplotlib' : null,
|
||||||
code.includes('sklearn') ? 'scikit-learn' : null,
|
code.includes('sklearn') ? 'scikit-learn' : null,
|
||||||
code.includes('scipy') ? 'scipy' : null,
|
code.includes('scipy') ? 'scipy' : null,
|
||||||
code.includes('re') ? 'regex' : null
|
code.includes('re') ? 'regex' : null,
|
||||||
|
code.includes('seaborn') ? 'seaborn' : null
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
|
|
||||||
console.log(packages);
|
console.log(packages);
|
||||||
@ -235,7 +236,8 @@ __builtins__.input = input`);
|
|||||||
code.includes('pandas') ? 'pandas' : null,
|
code.includes('pandas') ? 'pandas' : null,
|
||||||
code.includes('sklearn') ? 'scikit-learn' : null,
|
code.includes('sklearn') ? 'scikit-learn' : null,
|
||||||
code.includes('scipy') ? 'scipy' : null,
|
code.includes('scipy') ? 'scipy' : null,
|
||||||
code.includes('re') ? 'regex' : null
|
code.includes('re') ? 'regex' : null,
|
||||||
|
code.includes('seaborn') ? 'seaborn' : null
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
|
|
||||||
console.log(packages);
|
console.log(packages);
|
||||||
|
Loading…
Reference in New Issue
Block a user