If you are new to Jupyter Notebook, one of the most useful things you should learn about is the Markdown apart from learning Python. It is a lightweight markup language that is supported by Jupyter Notebook for formatting text in cells.
Using the Markdown option for a cell, you can generate formatted text, including headings, lists, tables, links, images, and more.
This really helps you to add details about the cells and helps to document your Notebook in a rich way.
Getting Started with Markdown in Jupyter Notebook
The first thing you need to do is, create a new cell, and from the dropdown as you see in the below gif demo, select "Markdown"
![Select Jupyter Notebook Cell as Markdown Select Jupyter Notebook Cell as Markdown](https://code2care.org/python/jupyter-notebook-markdown-with-examples/images/Select Jupyter Notebook Cell as Markdown.gif)
Now whatever you type in the cell will be considered as a markup language text.
Adding headers H1 - H6
Just like we have the header tags in HTML, we have the options of headers from h1 (biggest text header) to h6 (smallest text header)
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
##### Heading 6
![heading h1 to h6 in Markdown heading h1 to h6 in Markdown](https://code2care.org/python/jupyter-notebook-markdown-with-examples/images/heading h1 to h6 in Markdown.gif)
Just add # (hash) symbol before you start writing the header. The number of # you add will result in the respective header.
Bold/Italic
This will look **bold
This will look *italic
![bold and italic text bold and italic text](https://code2care.org/python/jupyter-notebook-markdown-with-examples/images/bold and italic text.jpg)
<h1>Heading 1<h1>
<hr>
This is <strongbold</strong>
Facing issues? Have Questions? Post them here! I am happy to answer!
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
- How to convert int to ASCII in Python
- How to make use of SQLite Module in Python?
- Split a String into Sub-string and Parse in Python
- Python: Pandas Rename Columns with List Example
- How to run Python file from Mac Terminal
- How to Exit a Loop in Python Code
- Python: How to Plot a Histogram using Matplotlib and data as list
- MD5 Hashing in Python
- Jupyter: Safari Cant Connect to the Server localhost:8888/tree
- Fix: AttributeError: str object has no attribute decode. Did you mean: encode?[Python]
- How to Read a binary File with Python
- How to add two float numbers in Python
- Python: How to install YAML Package
- Python: How to Save Image from URL
- What is Markdown in Jupyter Notebook with Examples
- How to change the Python Default version
- 33: Python Program to send an email vid GMail
- How to comment code in Python
- How to Fix AttributeError in Python
- Fix: error: Jupyter command `jupyter-nbconvert` not found [VSCode]
- How to comment out a block of code in Python
- List of All 35 Reserved Keywords in Python Programming Language 3.11
- Import Other Python Files Examples
- Python: How to add Progress Bar in Console with Examples
- 3 Ways to convert bytes to String in Python
- Simple Crossword Puzzle example using Pure HTML, CSS and JavaScript - Html
- Fix: This file is set to read-only. Try again with a different file name. [Windows 10/11] - Windows
- How to add Date and Time to Windows Notepad File - NotepadPlusPlus
- How to load zsh profile on opening shell terminal - MacOS
- Program 4: Input Name and Age and Print - 1000+ Python Programs - Python-Programs
- How to Show Commit Date in Eclipse Git History Details - Git
- How to stop/start/restart apache server using command [Ubuntu] - Ubuntu
- Flash Player will no longer be supported after December 2020. Turn off [Google Chrome] - Chrome