← Back to Blog

Bringing Interactive Computing to Zed: Introducing REPL Support

July 24th, 2024


Zed now features a built-in REPL! Run code, visualize data, and iterate right in your editor.

Run Python Block by Block

You can run code:

  • Line by line
  • Block by block (# %%)
  • Any selection

This merges the direct iterative experience of a REPL (Read Eval Print Loop) in your terminal with the rich output and interactivity of Jupyter notebooks, all in Zed. By embedding REPLs directly in the editor, your full development experience is paired with your analysis environment. Sometimes, you just need to run a few lines of code to experiment. Now you can do that right in your editor, without leaving your flow. No notebooks required.

Markdown documents become notebooks
Markdown documents become notebooks

Getting Started

Zed's REPL will detect installed kernels for any language. That goes beyond Python, into TypeScript support via Deno, R support via Ark or xeus-r, and many more.

Read the REPL docs to get started today.

Python

Queue up executions and iterate inline

R

Run R for the statistician in your heart

TypeScript

Read DataFrames in TypeScript, plot with D3 in Canvas

Try it out!

Once your kernel of choice is installed, open a script or a Markdown document. Select the code you want to run and hit ctrl-shift-enter.

The inline REPL is now on preview in the latest Zed release. We can't wait to see what you create with it!