To insert a heading, use the symbol, #, followed by a space and the heading text. The number of # indicates the heading level.
For example:
# This is a level 1 heading
## This is a level 2 heading
### This is a level 3 heading
This will provide you with the following output:
To insert a paragraph, simply write the text in a separate markdown cell without any special formatting.
For example: This is a paragraph of text. Jupyter Notebook allows you to write and execute code, create visualizations, and document your work.
This is some plain text that forms a paragraph. Add emphasis via **bold** and __bold__, or *italic* and _italic_.
This will provide you with the following output:
This is some plain text that forms a paragraph. Add emphasis via bold and bold, or italic and italic.
Paragraphs must be separated by an empty line.
To insert a code chunk, use code cells in Jupyter Notebook. You can either create a new code cell or convert an existing cell to a code cell. For example:
# This is a code chunk
x = 5
print(x)
5
To insert bullet points, use an asterisk (*) followed by a space before each point.
For example:
* First point
* Second point
* Third point
This will provide you with the following list:
First point
Second point
Third point
1. Lists can also be numbered.
2. If we want an ordered list.
This will provide you with the following numbered list:
You can also create a nested bullet list by adding additional indentation to the list items. Here's an example:
- Item 1
- Subitem 1
- Subitem 2
- Item 2
This will provide you with the following nested bullet list:
To insert an image, you need to have the image file in the same directory as your notebook. Use the following syntax to display the image:
![Alt Text](image.jpg)
Replace Alt Text
with a descriptive alternative text for the image and image.jpg
with the actual filename and extension of the image.
For example::
![jupyter.png](fig/jupyter.png)
To change the size of an image in a Jupyter Notebook, you can use HTML syntax within a Markdown cell. Here's how you can do it:
Place the image file in the same directory as your notebook or provide the correct file path if it's located elsewhere.
Insert an image in a Markdown cell using the following syntax:
<img src="path_to_image" alt="Image" width="300" height="200">
Replace path_to_image
with the actual file path or filename of the image. Adjust the width and height attributes according to your desired dimensions. You can specify either the width or height and the image will scale proportionally.
Alternatively, you can specify the size using CSS by adding a style attribute, like this:
<img src="path_to_image.jpg" alt="Image" style="width:300px;height:200px;">
For example:
<img src="fig/jupyter.png" alt="Image" width="300" height="200">
To insert a table, you can use Markdown syntax with the pipe (|) character to separate columns and hyphens (-) to define the table header.
For example:
| Column 1 | Column 2 |
|----------|----------|
| Value 1 | Value 2 |
| Value 3 | Value 4 |
This will provide you with the following table:
Column 1 | Column 2 |
---|---|
Value 1 | Value 2 |
Value 3 | Value 4 |
To insert a hyperlink, use the following syntax:
[Link Text](https://www.example.com)
Replace Link Text with the text you want to display as the hyperlink and https://www.example.com with the actual URL.
For example:
[Workshop website](https://pythonandr.netlify.app/about/)
This will provide you with the following output:
To insert mathematical equations or formulas using LaTeX syntax, enclose the equation within dollar signs $.
For example:
The quadratic equation is given by $ax^2 + bx + c = 0$.
The quadratic equation is given by $ax^2 + bx + c = 0$.