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.
Changes apply live — the embed link on the right and the preview above update instantly.
/embed.Embed link.