Live data from Hacker News

Show HN: Online Python Compiler with Libraries

cliprun.com

1–10 of 21 posts

Show HN: Online Python Compiler with Libraries

#1
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.

Show HN: Online Python Compiler with Libraries
cliprun.com

Re: Show HN: Online Python Compiler with Libraries

#2

  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: *` ?

Re: Show HN: Online Python Compiler with Libraries

#4
post #2

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 `Acce…

It runs on pyodide, i.e, a wasm interpreter that runs entirely in your browser.

Re: Show HN: Online Python Compiler with Libraries

#6
post #2

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 `Acce…

It runs on pyodide, i.e, a wasm interpreter that runs entirely in your browser.

[deleted]

Re: Show HN: Online Python Compiler with Libraries

#8
post #7

Hi, great project! Can you add the library pylan? https://pypi.org/project/pylan-lib/

Yes! To use pylan:

- 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.

Re: Show HN: Online Python Compiler with Libraries

#9
post #2

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 `Acce…

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.

https://chromewebstore.google.com/detail/python-code-runner/...

Re: Show HN: Online Python Compiler with Libraries

#10
post #7

Hi, great project! Can you add the library pylan? https://pypi.org/project/pylan-lib/

Yes! To use pylan: - 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.

ah ok. Thanks!
Post reply on HN