Notebooks
Mix executable Python or R code with markdown in a single file, run it in your browser, and read the outputs inline.
Notebooks (.ipynb files) mix code and markdown cells in one document. Code runs entirely in your browser (Python via Pyodide, R via WebR), so there's no server or separate runtime to set up.
Create and structure a notebook
Run cells and read outputs
Run a single cell with its per-cell run control, or use Run cell & advance to run it and move to the next cell.
Use Run all cells to execute the whole notebook top-to-bottom.
Each cell shows its output underneath (text, a table, a plot, or an error) along with an execution count.
If a cell hangs or a variable seems out of sync, use Stop execution, Restart kernel, or Restart and run all from the notebook toolbar.
Things to know
Supported languages are Python and R.
The kernel needs a few seconds to start on first use. Running a cell while it's still starting queues the request rather than failing.
Restarting the kernel clears all variables. Rerun your setup cells afterwards.
Runtime state (variables, outputs) is saved between sessions, but a hard refresh or a storage error can reset it. Rerun your setup cells if that happens.
Code you run, including code the AI runs on your behalf, can write files directly into your project, like a
.csvor image output. Unlike edits the AI proposes elsewhere, these writes aren't staged for review; they happen immediately, the same as if you'd run the code yourself. See Reviewing AI changes.
The AI can see your notebook like any other file. Attach it and ask for help writing a cell, explaining an error in the output, or summarizing what a block of code does. See Using AI.
Troubleshooting
Next steps
Last updated
Was this helpful?