Jupyter notebook Common shortcut keys

Source: Internet
Author: User
Tags close page jupyter jupyter notebook

Jupyter Notebook has two types of keyboard input modes:

(1) Edit mode, allowing you to type code or text into the unit (cell line green);

(2) Command mode, keyboard input Run program command (cell border gray)

0, open mode (under Windows)

CMD-> input: Jupyter notebook

1. Command mode (press ESC to open)

DD: Delete Cell # #新增

Enter: Transfer to edit mode

Shift-enter: Run this unit, select the next unit

Ctrl-enter: Run this unit

Alt-enter: Run this unit, insert a new cell under it

Y: Unit into Code State #与M, R correspondence

M: Unit transferred to Markdown State #与Y, R correspondence

R: Unit into raw State #与Y, M correspondence

1: Set the Level 1 title

2: Set the Level 2 title

3: Set the Level 3 title

4: Set the Level 4 title

5: Set the Level 5 title

6: Set the Level 6 title

Up: Select the upper unit

K: Select upper Unit

Down: Select the unit below

J: Select the unit below

SHIFT-K: Enlarge selected upper Unit

SHIFT-J: Enlarge the selected lower unit

A: Insert a new cell above

B: Insert a new cell below

X: Cut selected cells

C: Copy the selected cells

Shift-v: Paste into upper unit

V: Paste into the lower unit

Z: Redo the last cell deleted

D,d: Delete the selected cells

SHIFT-M: Merging selected cells

Ctrl-s: Filing Files

S: Filing Files

L: Convert line number # #新增

O: Converting output

Shift-o: Converting output scrolling

ESC: Close Page

Q: Close the page

H: Display shortcut keys Help

I,i: Interrupt Notebook kernel

0,0: Reboot the Notebook kernel

Shift: Ignore

Shift-space: Scroll up

Space: Scroll down

2. Edit mode (Enter key to start)

TAB: Code Completion or indentation

Shift-tab: Tips

CTRL]: Indenting

ctrl-[: Lifting Indent

CTRL-A: Select All

Ctrl-z: Recovery

Ctrl-shift-z: Do It again

CTRL-Y: Do It again

Ctrl-home: Jump to the beginning of a cell

Ctrl-up: Jump to the beginning of a cell

Ctrl-end: Skip to end of cell

Ctrl-down: Skip to end of cell

Ctrl-left: Jump to the left of a word first

Ctrl-right: Jump to the right of the first word

Ctrl-backspace: Delete the previous word

Ctrl-delete: Delete the following word

ESC: Enter Command mode

CTRL-M: Enter Command mode

Shift-enter: Run this unit, select the next unit

Ctrl-enter: Run this unit

Alt-enter: Run this unit, insert a unit below

ctrl-shift--: Split Unit

Ctrl-shift-subtract: Split Unit

Ctrl-s: Filing Files

Shift: Ignore

UP: Move the cursor up or into the previous cell

Down: Move the cursor down or into the next unit

3, other

Kernel-> restart& Run all–> cell, renumber

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.