Comment

Comment by alexprengere

I never realized how easy it was to put all this together. ~100 lines of CSS, ~100 lines of JS.

All the Python code execution is happening in your browser using Pyodide (a port of CPython to WebAssembly), so once the page is loaded, it should work even without internet.

You can even use GitHub pages to serve this statically. So I did: https://alexprengere.github.io/python_playground/

Sources: https://github.com/alexprengere/python_playground

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton