Run Python on Any Page. Right From Chrome.
The Python Compiler extension puts a Run button on Python code across ChatGPT, Claude, Gemini, Stack Overflow, GitHub and the Python docs. Output appears under the code, and everything executes privately on your device.
import statistics
samples = [12.1, 12.4, 11.9, 12.6, 12.0]
mean = statistics.mean(samples)
print(f"mean: {mean:.2f}")
print(f"stdev: {statistics.stdev(samples):.3f}")mean: 12.20 stdev: 0.274
Stop Copying Code Into Another Tab
Most Python you read is somewhere you cannot run it: an AI chat answer, a Stack Overflow solution, a GitHub file, an example in the official docs. Checking it means copying, switching tabs, pasting and switching back.
With the extension, Python code blocks get a Run button where they are, and the output appears below the code. It is built by the team behind pythoncompiler.io, the free online Python IDE with interactive Python tutorials.
What It Does




Python runs inside the extension, on your device: code and output are never sent to a server, and there is no account. Stop ends an endless loop at once and the next run starts fresh, so the tab never freezes.
Works Where You Read Code
- ChatGPT
- Claude
- Gemini
- Stack Overflow
- GitHub
- GitHub Gists
- docs.python.org
Snippets with >>> REPL prompts, like the official Python tutorial, are cleaned automatically: prompts stripped, echoed output removed, so docs examples run as written. Every site can be toggled off in the extension settings.
Frequently asked questions
- Is the extension free?
- Yes, completely free. No account, no trial, no limits on how much code you run.
- Is my code sent to a server?
- No. Python runs inside the extension, on your device. Your code and its output never leave your browser. The only network activity is downloading packages like numpy or matplotlib from a public CDN the first time a snippet imports them.
- Which websites does it work on?
- ChatGPT, Claude, Gemini, Stack Overflow, GitHub, GitHub Gists and docs.python.org out of the box. Each site can be toggled off in the extension settings, and more sites are added over time.
- Does it handle numpy, pandas and matplotlib?
- Yes. Packages load automatically the first time a snippet imports them, and matplotlib figures render as images right under the code block.
- What happens with infinite loops?
- The Stop button ends the Python runtime at once, and the next run starts a fresh one, so a runaway loop cannot lock up your browser tab.
Add It to Chrome
Free, and ready in two clicks.