Jupyter notebook快捷键备忘

The following are the keyboard shortcuts for an IPython Notebook. Learning to use these will help speed up your interactive shell development.

Command Mode (press Esc to enable)

  • Enter : enter edit mode
  • Shift-Enter : run cell, select below
  • Ctrl-Enter : run cell
  • Alt-Enter : run cell, insert below
  • Y : to code
  • M : to markdown
  • R : to raw
  • 1 : to heading 1
  • 2 : to heading 2
  • 3 : to heading 3
  • 4 : to heading 4
  • 5 : to heading 5
  • 6 : to heading 6
  • Up : select cell above
  • K : select cell above
  • Down : select cell below
  • J : select cell below
  • A : insert cell above
  • B : insert cell below
  • X : cut selected cell
  • C : copy selected cell
  • Shift-V : paste cell above
  • V : paste cell below
  • Z : undo last cell deletion
  • D,D : delete selected cell
  • Shift-M : merge cell below
  • S : Save and Checkpoint
  • Ctrl-S : Save and Checkpoint
  • L : toggle line numbers
  • O : toggle output
  • Shift-O : toggle output scrolling
  • Esc : close pager
  • Q : close pager
  • H : show keyboard shortcut help dialog
  • I,I : interrupt kernel
  • 0,0 : restart kernel
  • Space : scroll down
  • Shift-Space : scroll up
  • Shift : ignore

Edit Mode (press Enter to enable)

  • Tab : code completion or indent
  • Shift-Tab : tooltip
  • Ctrl-] : indent
  • Ctrl-[ : dedent
  • Ctrl-A : select all
  • Ctrl-Z : undo
  • Ctrl-Shift-Z : redo
  • Ctrl-Y : redo
  • Ctrl-Home : go to cell start
  • Ctrl-Up : go to cell start
  • Ctrl-End : go to cell end
  • Ctrl-Down : go to cell end
  • Ctrl-Left : go one word left
  • Ctrl-Right : go one word right
  • Ctrl-Backspace : delete word before
  • Ctrl-Delete : delete word after
  • Esc : command mode
  • Ctrl-M : command mode
  • Shift-Enter : run cell, select below
  • Ctrl-Enter : run cell
  • Alt-Enter : run cell, insert below
  • Ctrl-Shift-Subtract : split cell
  • Ctrl-Shift-- : split cell
  • Ctrl-S : Save and Checkpoint
  • Up : move cursor up or previous cell
  • Down : move cursor down or next cell
  • Shift : ignore

Current and updated keyboard shortcuts can be found in the Help menu in the IPython Notebook web interface. Additionally, this page in the documentation might be helpful.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值