jamielab@console :: /playground.md
online 2026-02-03 05:32
Code Playground

Code Playground

Write and execute code directly in your browser. JavaScript runs in a sandboxed environment, and Python is powered by Pyodide.


Features

  • JavaScript Execution: Run JavaScript code in a secure sandboxed iframe
  • Python Support: Full Python 3 via Pyodide (loads on first use)
  • Code Examples: Pre-built examples for common patterns
  • Share Links: Generate shareable URLs with your code
  • Keyboard Shortcuts: Quick run with Ctrl+Enter
  • Execution Timing: See how long your code takes to run

Limitations

  • 5 second timeout: Code that runs longer will be terminated
  • No network access: Fetch/requests are blocked for security
  • No file system: Cannot read/write files
  • Browser-only: Code runs entirely client-side
  • Python packages: Only standard library and a few extras available

Tips

  • Use console.log() in JavaScript to print output
  • Use print() in Python to display results
  • Python loads on first use (~5MB download)
  • Share links include your code in the URL (keep them short!)