Text & documents
Numbers & maths
Data & formats
Security
Development & DevOps
Artificial Intelligence
Finance
Health & Wellness
Productivity
Games & Entertainment
Multimedia & design
Business
How to use
How to use it

Type or paste Python code and press “Run”. It runs in your browser, on a separate thread: nothing to install. The first time it downloads the interpreter (about 6 MB, from jsDelivr); after that it stays in the browser cache.

Data files

A program that calls open("data.txt") needs that file: add it with “Add file”. It is not uploaded anywhere; it stays in your browser. The examples from the articles bring their own.

Stopping a program

“Stop” shuts the interpreter down and starts a new one next time (it takes a couple of seconds). It is the only way to cut an infinite loop.

Several files

Besides the main program you can create your own modules (“New file”, for example util.py) and use them with “import util”. Every run starts from scratch: only the files you see here and any data you add exist. What the program writes (open("salida.txt", "w")) appears below, so you can view or download it.

Links to an example

A link with ?example=… opens an example with its code and data; the link button in the toolbar gives you one with YOUR code inside (it goes after the #, so it is not sent to any server). In both cases the code is shown but does not run until you press “Run”. Nothing you write or any of your files leaves your browser.

Python labRun Python in your browser
Python labRun Python in your browser
Press Enter. Your own module is imported with “import util”.

What the program will see in sys.argv, separated by spaces.
What input() or sys.stdin reads: one line per call.
They stay in your browser: they are not uploaded anywhere.

This downloads a file from the internet. It goes to cdn.jsdelivr.net. Descarga el intérprete de Python (unos 6 MB) y los paquetes que tu código importe (numpy, pandas…) desde jsDelivr. Nothing of yours is sent, though that server does see your IP and which file you ask for.

This is programming: the code you run could send data out of the browser. This tool blocks the usual network exits, but only run code you understand, especially if it reached you through a link.