nanopython  /  playground

nanopython in the browser

MicroPython, strangled into Zig and compiled to wasm32-wasi. Your program runs locally and compiles locally — the bytecode on the right is what this same wasm binary made of it.

Source Python
Output

          
Bytecode — of .mpy
Run a program to see the bytecode it compiled to.
Packages & stdin

Packages (lazy-fetched from micropython.org/pi/v2, cached in IndexedDB)

Cache: …

stdin (piped to input() / fd 0)