First of all modules installed jupyter
pip install jupyter
After installation start:
jupyter notebook
It will automatically open the browser to jump to
The new file is a file ipynb
Rename , click on the file name
Run the code:
In the code input box, press shift + Enter to execute code, and skip to the next block of code
Ctrl + Ente execution of the current block, the next block of code will not Skip
Alt + Enter to execute the current block, but also a new input box
Two modes:
Input box displayed in two colors, blue and green, green is the edit mode, a blue command mode (x cut, v paste)
Green mode, press Esc and turn blue, blue can be changed to command mode, press the Enter edit mode
New code blocks input box:
A command mode above the current block is new, b is newly issued in the current block
d is delete, delete
v paste, shift + v paste above the current block
l is the number of lines of code to the standard front line
Copy cell c
markdown mode
Mode command press M, markdown syntax input, shift + Enter
By Y, the code back to the cell
Shortcuts: press H
Mathematical formula
$ Denote the beginning and end of the formula
$ E = mc ^ 2 $ # markdown input operation
A $ symbol indicates a mathematical formula is inline, within the line display, two $$ indicates a single line of formula
(you can learn about latex)
Einstein's mass-energy conversion equation E = MC ^ 2 $ $, reveals the relationship between quality and capacity
which is one dollar formula to solve the equation X $$ = \ {FRAC -b \ PM \ sqrt {B ^ 2 -4ac}} {2a} $$, mathematical formulas