repl.md

REPL

Read. Eval. Print. Loop.

This feature is in active development. Details may change. We're delighted to get feedback as the REPL feature evolves.

The built-in REPL for Zed allows you to run code interactively in your editor similarly to a notebook with your own text files.

To start using the REPL, add the following to your Zed settings.json to bring the power of Jupyter kernels to your editor:

{
  "jupyter": {
    "enabled": true
  }
}

After that, install any of the supported kernels:

Python

Global environment

To setup your current python to have an available kernel, run:

python -m ipykernel install --user

Conda Environment

source activate myenv
conda install ipykernel
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"

Virtualenv with pip

source activate myenv
pip install ipykernel
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"

Deno

Install Deno and then install the Deno jupyter kernel:

deno jupyter --unstable --install

Other languages