Konubinix' opinionated web of thoughts

Running Python in the Browser With WebAssembly | TestDriven.io

Fleeting

pyodide, WebAssembly

echo https://konubinix.eu$(cat <<EOF | ipfa
<head>
<script src="https://cdn.jsdelivr.net/pyodide/v0.20.0/full/pyodide.js"></script>
<script>
async function main() {
let pyodide = await loadPyodide({
indexURL : "https://cdn.jsdelivr.net/pyodide/v0.20.0/full/"
});
console.log(pyodide.runPython("print('Hello, world from the browser!')"));
};
main();
</script>
</head>
EOF)
https://konubinix.eu/ipfs/bafkreibqmsgfsi77j6ayy2giogrgqtdbjxlovhc5ciqusdiqwodk4yaqtu