A code block in a markdown cell is formatted when the markdown cell executes. The code in markdown cell code blocks do not execute when the markdown cell is run. Terminate the separate code block with a line of three ` left quote characters. This is inline code: ` ` ` Inline code block ` ` ` within a paragraphįor a separated code block use three ` left quote characters on one line, followed by the code block on separate lines. For inline code blocks use the ` left quote character, the character to the left of the number and above on most keyboards. # H1 HeadingĬode blocks can be inserted in Jupyter notebook markdown cells. Headings are created in markdown cells using the hash symbol #. An example of markdown syntax is putting an underscore before and after a word to cause the word to be formatted in italics. Text in markdown cells can be formatted using markdown syntax. Markdown cells are run by clicking the button or by pressing +. The difference is that when markdown cells are run, the text is formatted (when code cells run, code is executed). Markdown cells can be formatted with a few special characters. The text in a markdown cell is not executed. Markdown cells are used for documentation and explaining your code. Tables, images, and lists can also be included in markdown cells. Text in markdown cells can be formatted to show bold or italic text.
Markdown cells contain text written in Markdown format. Markdown cells don't contain Python code.
You can clear all the output cells and re-run code cells by selecting ->. If a code cell produces plots, charts or images, these outputs are shown in output cells. The results in output cells can't be edited. Not all code produces output, so not all code cells produce output cells. The output cell contains the output from the code cell above it. Hitting when the cursor is inside a code cell brings the cursor down to a new line.Īfter a code cell is run, an output cell can be produced below the code cell. To run the Python code in a code cell push the button or type +. You can tell you are typing in a code cell because In : is shown to the left of the cell and the cell-type drop-down menu shows Code. An example of a code cell is shown below. In code cells, you can write Python code, then execute the Python code and see the resulting output. There are three main types of cells: code cells, output cells, and markdown cells. Menus and ButtonsĪ Jupyter notebook is comprised of a bunch of cells which are arrayed one after another in boxes below the menu items and buttons. ipynb is not printed in the file name field, but if you look in the Home tab, you will see that the notebook is saved with the. You can click on the notebook name field and change the name of the notebook. Across the top of the notebook you see the Jupyter icon and the notebook name. When a new Jupyter notebook opens, you will see the Jupyter notebook interface. The Jupyter Notebook Interface The Jupyter Notebook Interface Problem Solving with Python Book Construction Saving Jupyter Notebooks in Other Formats