There are several projects that are using WebAssembly to run python in the browser. So far, the most useful looks to be running jupyter in the browser which can be deployed as a static site. That means you get a full fledged notebook and a kernel that can run any PyPi package that is pure python.
As someone who used to use jupyter notebooks all the time, that’s pretty incredible! We’re getting closer to writing python web applications.
Other projects:
- Skulpt runs a python 2 shell in the browser