Home Widgets Code Runner
Code Runner icon

Code Runner

Type code, hit Run, read the output.
DeveloperFree

A real playground, right on your page.

Code Runner is a tiny code playground you can embed anywhere in Notion. Pick a runtime language, type a few lines, and press Run (or Ctrl/Cmd+Enter) — the output console shows exactly what your program printed, including errors.

JavaScript executes instantly and 100% locally inside a sandboxed iframe — no network needed. The other 20 languages (Python, TypeScript, Java, C, C++, C#, Go, Rust, PHP, Ruby, Swift, Kotlin, Bash, Lua, Dart, Scala, Perl, Haskell, Elixir, R) run through the free Judge0 CE API. Your code is saved per language, so your Python scratchpad survives a page reload.

⚙️ Settings & Customization

  • Theme
  • Language
  • Size
  • Transparent background
  • 🎨 Accent Color

Changes apply live — the embed link on the right and the preview above update instantly.

📖 How to embed in Notion

  1. Copy the embed link from the sidebar on the right.
  2. Open the Notion page you want the widget on and type /embed.
  3. Paste the link into the embed dialog and press Embed link.
  4. Drag the embed's bottom edge to resize it to taste.
🆕 What's new in v1.1
  • ✦ 21 runtime languages — JavaScript runs fully offline
  • ✦ Sandboxed iframe with console capture + infinite-loop watchdog
  • ✦ Code persists per language across reloads
  • ✦ Ctrl/Cmd+Enter to run, Tab indents
  • ✦ 21 UI languages with RTL support

You might also like.

CategoryDeveloper
CompatibilityNotion · iframe
Size~35 KB
ThemeLight · Dark
Version1.1.0
UpdatedJuly 2026
Languages21 languages