Jupyter Markdown Cheat Sheet: A Quick Guide for Data Scientists

Master Jupyter Notebook Markdown with this quick cheat sheet for data scientists. Learn how to create headers, format text, make lists, add links and images, create code blocks, and design tables.

Jupyter notebooks have become an essential tool for data scientists, allowing them to create and share interactive code, visualizations, and text. One of the key features of Jupyter notebooks is the Markdown language, which enables users to format text, add headings, links, images, and other elements to their notebooks. In this blog post, we will provide a quick guide to Jupyter Markdown, including some of the most useful syntax and tips for formatting your notebooks. The first cheat is free: you can use Jupyter notebooks online for free at Saturn Cloud.

Getting Started with Markdown

Markdown is a lightweight markup language that is easy to learn and use. To create a Markdown cell in a Jupyter notebook, simply select the cell type as Markdown from the dropdown menu or use the keyboard shortcut “M”. Once you have created a Markdown cell, you can start typing your text and use the syntax to format it.


Headers are used to organize your content and make it easier to read. To create a header, simply add one or more hash symbols (#) at the beginning of the line, followed by a space and the header text. The number of hash symbols determines the level of the header, with one hash symbol for level 1, two for level 2, and so on. Here’s an example:

# Header 1
## Header 2
### Header 3

Text Formatting

Markdown allows you to format your text in various ways, such as bold, italic, and strikethrough. To make text bold, surround it with double asterisks (**), like this:

**bold text**

To make text italic, surround it with single asterisks (*), like this:

*italic text*

To add strikethrough to text, surround it with double tildes (~~), like this:

~~strikethrough text~~


Markdown supports both ordered and unordered lists. To create an unordered list, simply start each line with a dash (-), asterisk (*), or plus sign (+), followed by a space and the list item. Here’s an example:

- Item 1
- Item 2
- Item 3

To create an ordered list, start each line with a number, followed by a period and a space, like this:

1. Item 1
2. Item 2
3. Item 3

To add a hyperlink to your text, surround the link text with square brackets ([]), followed by the URL in parentheses (()). Here’s an example:


To add an image, use the same syntax as for links, but add an exclamation mark (!) before the square brackets. Here’s an example:

Code Blocks

One of the most useful features of Jupyter notebooks is the ability to include code blocks in your Markdown cells. To create a code block, simply indent the code by four spaces or one tab. You can also use triple backticks (```) to create a code block with syntax highlighting. Here’s an example:

import pandas as pd
df = pd.read_csv('data.csv')


Markdown also supports tables, which can be useful for displaying data in a structured format. To create a table, use vertical bars (|) to separate the columns and hyphens (-) to create the header row. Here’s an example:

| Column 1 | Column 2 |
| -------- | -------- |
| Row 1, Column 1 | Row 1, Column 2 |
| Row 2, Column 1 | Row 2, Column 2 |


That’s it for our quick guide to Jupyter Markdown. We hope you found this cheat sheet useful and that it will help you create more readable and engaging notebooks. Remember that Markdown is a flexible language that allows you to customize your text in many ways, so don’t be afraid to experiment and try new things.

Additional Resources