Code and Markdown Cells

Code Cells

Users can edit and execute any valid Python in a code cell.

Code cells can optionally have Outputs, which are visualizations of elements from the code.

Examples of code cells - one with and one without an output

Markdown Cells

Markdown cells allow you to easily create richly-formatted text.

We use the Commonmark Markdown renderer - if you need help getting started with Markdown we recommend checking out their reference and tutorial.

Converting Cells

You can convert a cell from a Code to a Markdown cell and vice-versa using the dropdown in the upper right.

Or use keyboard shortcuts to convert between cell types:

  • Go from Code to Markdown cells with esc + m

  • Go from Markdown to Code cells with esc + y