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>.

Example:
Adding Line Break Example Jupyter Notebook
-

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




Author: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X














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