Added Pyodide snippet

This commit is contained in:
2022-08-23 00:18:11 +02:00
parent afbf106d27
commit 26cb8ea56c

11
snippets/pyodide.js Normal file
View File

@@ -0,0 +1,11 @@
async function main() {
let pyodide = await loadPyodide();
// Pyodide is now ready to use...
console.log(pyodide.runPython(`
import sys
sys.version
`));
}
main();
// https://pyodide.org/en/stable/usage/quickstart.html