Python in Browser

Snakes around Jupiter

When I first heard about python interpreter in browser via PyScript in 2022, I was like: that’s coooool… but why???

It feels like the opposite of Node.js: Node.js brings javascript to server, and PyScript brings python into browser. While the async nature of javascript makes it solid for backend development, I couldn’t see a good reason for bringing python into frontend on client side. Data and machine learning are use cases where python really shines to my experience, and they seem to have very minimal overlaps with frontend or browser.

However, it turned out that I totally missed the potential of this work. Talented developers have put efforts into this direction for years, and made JupyterLite, a full static Jupyter distribution that runs in browser. This great work has inspired me and made me see what could be achieved.

Read More