Sorry to resurrect this topic. It’s an issue close to my heart.
I’m looking forward the day we’ll have a great Python implementation on the browser, I think Mozilla’s Pyodide seems to point to a WebAssembly future: https://github.com/iodide-project/pyodide/
As we are not quite there yet, please have a look at this nice Transcrypt + p5js experiment:
- write Python, get Javascript + p5js https://github.com/berinhard/pyp5js