Summary of Jupter Notebook and Markdown shortcut keys Jupter Notebook 1. Start Jupter Notebook Open the installed Anaconda, find Jupter Notebook, and click 2. Shortcut keys Command mode (press Esc to enable) F: find and replace Enter: Enter editing mode Ctrl-Shift-F or Ctrl-Shift-P or P: Open the command palette Ctrl-Enter: Run the selected unit Shift-Enter: Run this unit and select the next unit Alt-Enter: Run this unit and insert a new unit below Y: The unit switches to code mode M: The unit is converted to markdown mode R: unit converted to raw mode 1: Set as level 1 title 2: Set as level 2 title 3: Set as level 3 title 4: Set as level 4 title 5: Set as level 5 title 6: Set as level 6 title K or Up: Select the previous unit J or Down: Select the next cell Shift-K or Shift-Up: Expand the selected upper cell Shift-J or Shift-Down: Expand the selected lower unit A: Insert new unit above B: Insert new unit below X or D,D: Delete the selected unit C: Copy selected cells Shift-V: Paste into the cell above V: Paste to the cell below Z: Restore the last unit just deleted Shift-M: Merge selected cells S or Ctrl-S: Save L: Switch line number (with line number / without line number) O: Switch the output of the selected unit (hide/show) Shift-O: Toggle the output scrolling of the selected unit H: Show keyboard shortcuts I,I: interrupt kernel 0,0: Restart the kernel Esc or Q: Close the page Shift-L: Toggle line numbers in all cells and save settings (with or without line numbers) Shift-Space: scroll up Space: scroll down Edit mode (press Esc to enable) Tab: code completion or indentation Shift-Tab: prompt (press Tab once for simple prompt, press Tab twice for detailed prompt) Ctrl-]: indent Ctrl-[: Cancel indentation Ctrl-A: Select all Ctrl-Z: Undo Ctrl-/: Comment Ctrl-D: delete the entire line Ctrl-U: Cancel selection Ctrl-Home or Ctrl-Up: Jump to the beginning of the cell Ctrl-End or Ctrl-Down: Jump to the end of the cell Ctrl-Left: Jump to the beginning of the word on the left Ctrl-Right: Jump to the beginning of the word on the right Ctrl-Backspace: Delete the previous word Ctrl-Delete: Delete the next word Ctrl-Y: redo Alt-U: Reselect Ctrl-M: Enter command mode Ctrl-Shift-F or Ctrl-Shift-P: Open the command palette Esc: Enter command mode Ctrl-Enter: Run the selected unit Shift-Enter: Run this unit and select the next unit Alt-Enter: Run this unit and insert a new unit below Ctrl-Shift-Minus: Split the unit at the cursor Ctrl-S: Save Down: Move the cursor downwards Up: Move the cursor upward Markdown 1. Shortcut keys Undo: Ctrl/Command + Z Redo: Ctrl/Command + Y Bold: Ctrl/Command + B Italic: Ctrl/Command + I Title: Ctrl/Command + Shift + H Unordered list: Ctrl/Command + Shift + U Ordered list: Ctrl/Command + Shift + O Checklist: Ctrl/Command + Shift + C Insert code: Ctrl/Command + Shift + K Insert link: Ctrl/Command + Shift + L Insert image: Ctrl/Command + Shift + G 2. Title Add # signs before the title. Add as many # signs as needed for each level of title. Note: Up to six levels of headings # First level title ## Second level title ### Third level title #### Level 4 heading ##### Level 5 headings ###### Sixth level title </code> final effect: Level 1 title Level 2 title Level 3 title Level 4 heading Five-level headings Six-level headings 3. Text style emphasize Wrap text with * or _ signs *Life is short, I learn Python* _Life is short, I learn Python_ </code> final effect: Life is short, I learn Python Life is short, I learn Python Bold Wrap text with ** or __ **Life is short, I learn Python** __Life is short, I learn Python__ </code> final effect: Life is short, I learn Python Life is short, I learn Python mark Wrap text with == ==Life is short, I learn Python== </code> final effect: Life is short, I learn Python delete Use ~~ to wrap text ~~Life is short, I learn Python~~ </code> final effect: Life is short, I learn Python Quote Add the > sign before the text, and the reference can be nested >Life is short, I learn Python >>Life is short, I learn Python >>>Life is short, I learn Python </code> final effect: Life is short, I learn Python Life is short, I learn Python Life is short, I learn Python 4. Dividing line Three or more – or * --- ------ *** **** </code> final effect: 5. Hyperlink Format: [hyperlink name] + (hyperlink address “hyperlink title”) Note: title can be omitted [Baidu](http://www.baidu.com) [Baidu Cloud Disk](https://pan.baidu.com/) </code> final effect: Baidu Baidu Skydisk 6. Pictures Pictures Format: ![Alt] + (picture address ”picture title”) Note: Alt is the text displayed under the picture, which is equivalent to the explanation of the picture content. Image title is the title of the image, the content displayed when the mouse moves over the image. Title can be added or not added ![Alt](https://img-blog.csdnimg.cn/20190308201926251 .jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGV pdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L 3dlaXhpbl80NDY5MDg0Ng==,size_16,color_FFFFFF,t_70) </code> final effect: Pictures with dimensions Format: ![Alt] + (image address=size) ![Alt](https://img-blog.csdnimg.cn/20190308201926251 .jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGV pdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaX hpbl80NDY5MDg0Ng==,size_16,color_FFFFFF,t_70 =120x120) </code> final effect: Centered image Format: ![Alt] + (picture address #pic_center) ![Alt](https://img-blog.csdnimg.cn/20190308201926251 .jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGV pdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dla Xhpbl80NDY5MDg0Ng==,size_16,color_FFFFFF,t_70 #pic_center) </code> final effect: Centered and sized images Format: ![Alt] + (picture address #pic_center = size) ![Alt](https://img-blog.csdnimg.cn/20190308201926251 .jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGV pdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dla Xhpbl80NDY5MDg0Ng==,size_16,color_FFFFFF,t_70 #pic_center =120x120) </code> final effect: 7. Code single line of code Wrap the code with ` `a = 5` </code> final effect: a = 5 multiple lines of code Wrap the code with “` (backticks) Note: Backticks need to be on a separate line a = 1 b = 2 c = a + b print(c) </code> 8. Table Text is on the left by default -Add on both sides: means the text is centered -Add to the right: means the text is on the right For a nice look (alignment) add – Note: Use both sides | Wrap |Header|Header|Header| |-|:-:|-| |Content|Content|Content| |Content|Content|Content| </code> final effect: Table header Table header Table header Content Content Content Content Content Content |Header|Header|Header| |------|:----:|------| |Content|Content|Content| |Content|Content|Content| </code> final effect: Table header Table header Table header Content Content Content Content Content Content