new line in markdown jupyter in python

To add a new line in Markdown within Jupyter Notebook, you can use the <br> tag or add two or more spaces at the end of a line followed by a newline character, \n.

Here is an example using the <br> tag:

This is the first line.<br>
This is the second line.
53 chars
3 lines

And here is an example using two spaces at the end of a line:

This is the first line.  
This is the second line.
51 chars
3 lines

Both of these methods will result in the text appearing on separate lines when rendered in the Jupyter Notebook.

related categories

gistlibby LogSnag