Projects
⚡ Active: -
Interactive Python REPL
Ready Clear
>>>
Interpreter Output (stdout / stderr)
Clear

            
sandpage

Write, run, and experiment with Python — including full pygame graphics, games, audio, and turtle — right inside your web browser.

Why sandpage

Multi-File Editor & Local Files

Organize code into projects and folders, edit Python with syntax highlighting and tabs, upload assets (images, audio, data), and keep your work saved locally across reloads and restarts.

Live pygame Graphics & Sound (plus turtle)

Build interactive 2D games, simulations, sprites, and procedural or file-based audio with pygame (pygame-ce), plus a built-in turtle module rendered on top of pygame.

Interactive REPL & Console

Test ideas live in a persistent Python REPL (>>>) that shares your files, canvas, and audio — while staying isolated from your editor script globals.

100% Local & Private (Optional Cloud Sync)

Every keystroke, file, and line of Python runs strictly inside your browser. Nothing is uploaded or loaded from external sync services unless you explicitly opt in under Settings → Cloud Sync Settings….

Keep in mind: Browsers isolate local storage by URL/origin. Opening sandpage from a different URL (or another browser/device) starts with a separate storage space. Use Project → Export (.tar.gz) or opt in to Settings → Cloud Sync Settings… (Google Drive) to keep your projects synced across devices.

The Four Panes (Drag Gutters to Resize)

1. File Explorer & Editor (Top-Left)

Browse projects and folders, edit open tabs, and click Run Code to execute the active .py file in a fresh namespace (clicking Run Code while something is already running stops it and runs the active tab). Click Stop to halt audio and scripts — even infinite loops like while True: pass.

2. Pygame-CE Canvas (Top-Right)

Live graphical output for both Editor scripts (pygame & turtle) and REPL commands, with mouse, touch, and keyboard input. Double-click or click Fullscreen to expand.

3. Interactive Python REPL (Bottom-Left)

Persistent >>> prompt with Tab indentation and ↑/↓ command history. Runs in its own isolated ephemeral /workspace and /tmp sandbox (separate from your projects, not persisted across reloads), while sharing canvas and audio; locked while an Editor script is running.

4. Interpreter Output (Bottom-Right)

Shows stdout, stderr, ANSI colors, and inline input() prompts. Click anywhere in the console to re-focus an active input() box.

Core Concepts

Source code: https://gitlab.com/DavidDecotigny/sandpage · Contributing · Privacy Policy · Terms of Service · License (GPLv3)
Powered by Pyodide v0.29.5 (MPL-2.0), pygame-ce 2.5.6.dev2 (LGPL-2.1-or-later), Python stdlib (PSF), and CodeMirror 5.65.16 (MIT) in an isolated Web Worker.
Copyright © 2026 David Decotigny. Licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later); comes with ABSOLUTELY NO WARRANTY. Build: v0.9.2-6-g8ca9660 (8ca9660)

⚠ Cloud Sync Unavailable on file://

External cloud sync cannot be enabled when opening sandpage from a local file URL.

HTTPS Required: Browser OAuth providers (such as Google Drive) cannot authenticate from file:// URLs. Open sandpage over https:// (or http://localhost) to use Cloud Sync.

Your projects continue working locally in this browser. To transfer projects manually from a file:// build, use Project → Export All (.tar.gz) and Import Project (.tar.gz).

☁ Cloud Sync Settings

Local browser storage is always active. Optionally sync this profile with at most one external service.

Local browser storage only

Per-profile setting (off by default). Zero OAuth tokens or personal data are ever saved in localStorage. When off, click Reconnect in the status bar or Settings → Cloud Sync after reopening. When on, the sign-in dialog opens automatically on startup (your browser may require allowing popups for this site).

⚠ Sync Conflicts (0)

Review overlapping changes and choose which version to keep for each file.

Bulk select:
File Status Local (Ours) Remote (Theirs) Choice Diff