Markdown cell in Jupyter notebook (3) Hyperlink-Formula-HTML

Change the corresponding drop-down list item to Markdown for the code cell, then enter the plain text, and then use square brackets to enclose the graphic Python in the text as the link name, and use parentheses to enclose the URL in the text as the link address :
Insert picture description here
Run Cell->Run Cells, you can see that the plain text is formatted as text with hyperlinks, and clicking the link name will jump to the specified link address:
Insert picture description here

Next, copy and paste, double-click to edit, we change the link name to the link address:
Insert picture description here
when the link name is the same as the link address, there is a simpler way of writing, as shown in the figure below, is to put the link address in a pile of angle brackets In, we add two spaces at the end of the first line to change the line:
Insert picture description here
Cell->Run Cells, click any link to jump to the specified link address:
Insert picture description here

Next click the first cell, then click the copy button in the toolbar, then click the second cell, and then click the button paste in the toolbar, so that the first cell will be pasted at the end, double-click to edit :
Insert picture description here
We can replace the parentheses and the link address with a square bracket and a variable:
Insert picture description here
Insert picture description here
Then use the
Insert picture description here
square brackets and this variable to specify the link address: note that a blank line should be inserted between the two lines in the above figure, Cell-> Run Cells:
Insert picture description here
The advantage of this is that if the same link address is used in multiple places, then the brackets and variables above can be used instead, for example:
Insert picture description here
pay attention to adding 2 after the first and second lines A space to change the line, and then Cell->Run Cells operation:
Insert picture description here
these 3 hyperlinks all point to the same address.

Next, click the + plus sign to change to Markdown. In the Markdown cell, we can insert a mathematical formula in LaTeX format. This mathematical formula is in LaTeX format. If you want to use it as an in-line formula, add it on the left and right sides. A $ sign:
Insert picture description here
Cell->Run Cells:
Insert picture description here

Copy and paste, double-click to edit. If you want to use it as an entire line of formulas, add two $
Insert picture description here
signs on the left and right sides: Cell->Run Cells, and the entire line of formulas will be displayed in the center. Show more and more complicated LaTeX mathematical formulas, you can learn LaTeX syntax:
Insert picture description here

Next, click the + plus sign to change to Markdown. In the Markdown cell, we can also insert HTML tags. For example, the tag u in HTML can display an underlined text:
Insert picture description here
Cell->Run Cells runs, and the text is displayed below An underscore:
Insert picture description here

Click the + plus sign to change to Markdown. Another example is the hyperlink mentioned earlier. You can also use the tag a in HTML to achieve:
Insert picture description here
Cell->Run Cells. After clicking the link text, you can also jump to the specified link address:
Insert picture description here

For example, to change the color of the text, you can use the tag font in HTML to specify the color of the text as red:
Insert picture description here
Cell->Run Cells runs, and the text is formatted as red:
Insert picture description here

You can also use the standard way in HTML5:
Insert picture description here
Cell->Run Cells, the text is also formatted in red:
Insert picture description here

Common HTML tags are supported in Markdown.

Guess you like

Origin blog.csdn.net/zhaopeng01zp/article/details/109226077