In this article, I'll take a note of the basics of Jupyter Notebook, which seems to be the most widely used interactive shell.
The interactive shell is excellent in the coding environment in the following points.
Installation method reference-> Illustration! Thorough explanation of Jupyter Notebook! (How to install / use / start / exit)
The following Cell Types can be selected on the Jupter Notebook.
A Cell in which you can enter any Python Code. You can execute the code contents with Shift + Enter, and the corresponding result is output to the Output Cell.
The Jupyter Notebook is a great way to explain the code content, because of this Markdown Cell. In Markdown Cell, you can write a description of the code content using Markdown commands or HTML. In addition, LaTex format formulas using MathJax can also be described, so it is highly versatile.
RAW You can write text flat without any command.
HEADING You can easily create a header structure on the code description. It can be described in the same way in MARKDOWN CELL.
Shortcuts for using Jupyter Notebook can be found by pressing the keyboard on the notebook below.
Make a note of the frequently used ones below.
|Shift+Enter||Execute the selected cell.|
|b||Add a new cell under the currently selected Cell.|
|a||Add a new cell on top of the currently selected Cell.|
|d-d||Delete the currently selected Cell.|
|1-6||Automatically#In the markdown cell for the number of numbers, create a header.|
|m||Change the selected Cell to MARKDOWN CELL.|
|y||Change the selected Cell to CODE CELL.|
|c||Copy the selected Cell.|
|v||Paste the copied Cell.|
|0-0||Restart the kernel.|
|i-i||Stop code execution.|
|s||Save the Notebook.|
Most of the description method is the same as the expression in Qiita.
|Description expression||Markdown notation|
|new line||Add a blank line below the text you want to break.|
|header||At the beginning of the sentence you want to put in the header"#"Attach."#"Level can be changed by the number of. 1-The same description is possible with 6 keyboard shortcuts.|
|Quote, reprint||At the beginning of the sentence">"To describe|
|list||At the beginning of the sentence"*"● List in notation. At the beginning of the sentence"1."If you enter equal numbers, it will be a list in numerical notation. Note that each keyword requires a space after it.|