Post #563515
2026-01-21 05:10 UTC
Currently hacking on an embeddable Python REPL, powered by Wasm/Pyodide.
My goal is to make it simple to get Python running on a website, just using a script tag/div:
<script src="https://cdn.jsdelivr.net/npm/pyrepl-web/dist/pyrepl.js"></script>
<div class="pyrepl"></div>
Then, optionally strap on attributes like data-theme="catppuccin-mocha" or data-packages="pydantic, requests, whatever" and everything is taken care of for you!
A WIP but https://github.com/savannahostrowski/pyrepl-web. Working example here too: https://savannah.dev/projects/
Replies (8)
-
@treyhunner@mastodon.social 2026-01-21 06:03
@savannah I have considered trying to put something together like this for a while (years?) and figured if I waited long enough someone else would do it. I'm surprised no one's done it until now and I'm REALLY glad you're doing this!
-
@voltagex@aus.social 2026-01-21 12:05
@savannah *liked and subscribed*
-
@sethmlarson@mastodon.social 2026-01-21 13:54
@savannah Yes, please! 🤩
-
@deadwisdom@fosstodon.org 2026-01-21 14:58
@savannah Amazing! May I suggest making it a web component? =2.12.5">
-
@ClariNerd@mastodon.social 2026-01-21 21:42
@savannah *dusts off old MetPy scripts*
-
@Lee_Holmes@infosec.exchange 2026-01-21 22:00
@savannah That's so cool - it took me a while to realize it was an interactive REPL and not just an image. Great job.
-
@chr1stian@mastodon.social 2026-01-22 00:19
@savannah wow!
-
@hugovk@mastodon.social 2026-01-22 18:30
@savannah I hacked up a thing... https://hugovk-cpython.readthedocs.io/en/pyrepl/tutorial/introduction.html