Inline Python where all you have to do is put in <python></python>
<script type="module" src="https://pyscript.net/releases/2025.8.1/core.js"></script>
<py-script>
import sys
from pyscript import display
display(sys.version)
</py-script>
Demo: https://static.simonwillison.net/static/2025/pyscript-demo.h...Or you can use MicroPython which is much smaller:
<mpy-script>
import sys
from pyscript import display
display(sys.version)
</mpy-script>
Demo: https://static.simonwillison.net/static/2025/pyscript-microp...I would be interested to see how short the time to run "Hello World" can be with python in a webpage, counting the time to load the whole page without cache.