Comment Comment by mg The homepage left me confused, and also after reading the documentation, I'm not sure what this is.I tinkered a bit to try it myself.Turns out you can throw this into your website and it will display "Hello World": <script type="module" src="https://pyscript.net/releases/2024.8.2/core.js"></script> <script type="py"> import js js.document.querySelector("body").innerText = "Hello World" </script> So it seems to be a script that looks for scripts of type "py" and transpiles them from Python to JavaScript via Pyodide?On the other hand, the demo on the homepage is a repl. And the title says "platform". So I'm still confused. parent mg 2 years ago
I tinkered a bit to try it myself.
Turns out you can throw this into your website and it will display "Hello World":
So it seems to be a script that looks for scripts of type "py" and transpiles them from Python to JavaScript via Pyodide?On the other hand, the demo on the homepage is a repl. And the title says "platform". So I'm still confused.