MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / initPyodide

Function initPyodide

client/src/api/iqdata/Queries.ts:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 const [pyodide, setPyodide] = useState<any>(null);
48
49 async function initPyodide() {
50 console.log('Loading pyodide...');
51 const pyodide = await window.loadPyodide();
52 await pyodide.loadPackage('numpy');
53 await pyodide.loadPackage('matplotlib');
54 return pyodide;
55 }
56
57 useEffect(() => {
58 if (!pyodide && pythonScript && pythonScript !== INITIAL_PYTHON_SNIPPET && fftStepSize === 0) {

Callers 1

useGetIQDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected