1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00

add stores, move pyscript component in it's own file add method to add new scripts to page

This commit is contained in:
Fabio Pliger
2022-03-04 14:13:32 -06:00
parent 0a636118be
commit 6f5ffc7360
7 changed files with 203 additions and 140 deletions

View File

@@ -0,0 +1,15 @@
// @ts-nocheck
// @ts-ignore
let pyodideReadyPromise;
let loadInterpreter = async function(): any {
/* @ts-ignore */
let pyodide = await loadPyodide({
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.19.0/full/",
});
/* @ts-ignore */
return pyodide;
}
export {loadInterpreter, pyodideReadyPromise}