Show HN: Online Python Compiler with Libraries
18 points| andycloke | 1 year ago |cliprun.com | reply
It uses Pyodide to execute Python in the browser using WebAssembly.
18 points| andycloke | 1 year ago |cliprun.com | reply
It uses Pyodide to execute Python in the browser using WebAssembly.
[+] [-] sekizsonsuz|1 year ago|reply
[+] [-] andycloke|1 year ago|reply
You're right, it's an interpreter and that would be the 100% accurate term.
For online coding environments, the two are often used interchangeably. More people search for 'compiler', so I'm using that widely on my site.
[+] [-] metadat|1 year ago|reply
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: *` ?
[+] [-] andycloke|1 year ago|reply
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.
https://chromewebstore.google.com/detail/python-code-runner/...
[+] [-] hoodchatham|1 year ago|reply
[+] [-] porridgeraisin|1 year ago|reply
[+] [-] Rush2112|1 year ago|reply
[+] [-] andycloke|1 year ago|reply
- Click on the Clip name (the default one is 'Use Python Libraries') - Click 'Manage packages' - Enter 'pylan-lib' and Click 'Add' - Click 'Run'
The package will be installed, and the code will run!
The list of libraries is only a small subset of the compatible libraries - I should make that way clearer.
[+] [-] gardnr|1 year ago|reply
It reminds me a bit of marimo: https://docs.marimo.io/guides/publishing/
[+] [-] andycloke|1 year ago|reply
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!
[+] [-] arbitrandomuser|1 year ago|reply
[+] [-] mscolnick|1 year ago|reply