Add Line Break (New Line) in Jupyter Notebook Markup Cell

There are two ways in which you can add a line break (new line) at the end of a sentence in Jupyter Notebook Markup Cell.

Option 1: By adding two spaces

    Just add two spaces at the end of the line where you want to break it into a new line.

    This is line 1.    
    This is line 2.

Option 2: Make use of the HTML <br> tag

    Alternatively, you can make use of the HTML <br> tag to break the line.

    This is line 1.<br>.
    This is line 2<br>.

Adding Line Break Example Jupyter Notebook

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

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:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap