Hey HN, I just launched this online Python compiler which lets you use popular Python libraries like requests, Matplotlib, Plotly, Pandas, NumPy etc. online.
It uses Pyodide to execute Python in the browser using WebAssembly.
I personally saw how novice Python programmers searched for “Python compiler” while their actual intent was to find Python REPL/execution environment online (pythontutor, ideone, repl.it, trinket.io, etc)
Many of this services use “compiler” in their description. It may be technically true if they use Python implementation that compiles Python source to byte code first, and then interprets the resulting bytecode (like CPython, Pypy implementation do).
import requests
r = requests.get('https://theonion.com')
print(r.text)
Hmm, I wonder if you could use subprocess to fetch and run any binary. What kind of sandbox is this running in, and what are the limits?
Running arbitrary untrusted code seems like a potential security issue.
Edit: @porridgeraisin Got it, thanks! Does this mean outbound http requests only work with domains that support arbitrary requests via `Access-Control-Allow-Origin: *` ?
Maker here! Runs in an isolated Web Worker using Web Assembly, via Pyodide. Everything runs locally in your browser - no file system or other access. Scheduled run (paid plan) run on AWS lambda.
So, yes, sadly, network requests only work with domains with Access-Control-Allow-Origin: *. I'm looking at adding a backend CORS proxy to fix this.
We also have a Chrome extension with no CORS limitation. The extension lets you right-click Python code snippets on basically any site (Claude, ChatGPT, Deepseek etc.) to run it instantly.
I looked briefly at Marimo when building - awesome project. I wasn't sure about building on Pydodide as it's obviously not full Python compatibility. But seeing someone else building a popular project on it helped me make that decision!
What am I paying for if it's running on my system ?
Not asking to deride , but could you elaborate what value this adds over simple installing python on my system ?