PINE//OPS
STATUSSTANDBY

Online Python compiler

Python 3 via WebAssembly — runs on your device.

stdin (program input)

Python that runs on your machine, not ours

This page loads Pyodide, the CPython interpreter compiled to WebAssembly. The first run downloads the runtime (about 10 MB, then cached); after that, scripts start instantly and keep working offline.

The full standard library is available. Importing a supported package such as numpy or pandas fetches it automatically on first use.

Hello world

name = "world"
print(f"Hello, {name}!")

Frequently asked questions

How do I read input()?

Open the stdin box under the editor and type one value per line. Each call to input() reads the next line.

Can I install pip packages?

Pure-Python wheels and the packages bundled with Pyodide (numpy, pandas, scipy, matplotlib and many more) load on import. Packages that need native code not built for WebAssembly will not work.

Is there a time limit?

Scripts are stopped after 20 seconds of execution so an accidental infinite loop cannot freeze your tab. Runtime download time does not count.

Related tools

Recon mode — drag to orbit · click to ping · scroll for altitude