-
Notifications
You must be signed in to change notification settings - Fork 393
Expand file tree
/
Copy pathiPython_Notebook.rb
More file actions
164 lines (158 loc) · 2.77 KB
/
Copy pathiPython_Notebook.rb
File metadata and controls
164 lines (158 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
cheatsheet do
title 'IPython Notebook'
docset_file_name 'iPython_Notebook'
keyword 'ipynb'
introduction 'IPython Notebook has two sets of keyboard shorcuts. Edit mode is active when the cursor is in a cell and the cell has a green border. Command mode is active when the cell has a grey border and the editing cursor is not inside any cell.'
source_url 'http://cheat.kapeli.com'
category do
id 'Active in Both Modes'
entry do
command 'CTRL+Enter'
name 'Run cell'
end
entry do
command 'SHIFT+Enter'
name 'Run cell and select cell below'
end
entry do
command 'OPTION+Enter'
name 'Run cell and insert new cell below'
end
entry do
command 'CMD+S'
command 'CTRL+S'
name 'Save notebook'
end
end
category do
id 'Edit Mode'
entry do
command 'Esc'
command 'CTRL+M'
name 'Command mode'
end
entry do
command 'OPTION+"-"'
name 'Split Cell'
end
end
category do
id 'Command Mode'
entry do
command 'Enter'
name 'Go to edit mode'
end
entry do
command 'Y'
name 'Switch cell to code mode'
end
entry do
command 'M'
name 'Switch cell to Markdown/LaTeX mode'
end
entry do
command '1..6'
name 'Switch cell to Heading of respective level (1-6)'
end
entry do
command 'Arrow Up'
command 'K'
name 'Go to cell above'
end
entry do
command 'Arrow Down'
command 'J'
name 'Go to cell below'
end
entry do
command 'CTRL+K'
name 'Move cell up'
end
entry do
command 'CTRL+J'
name 'Move cell down'
end
entry do
command 'SHIFT+Arrow Up'
command 'SHIFT+K'
name 'Extend selection up'
end
entry do
command 'SHIFT+Arrow Down'
command 'SHIFT+J'
name 'Extend selection down'
end
entry do
command 'A'
name 'Insert cell above'
end
entry do
command 'B'
name 'Insert cell below'
end
entry do
command 'X'
name 'Cut cell'
end
entry do
command 'C'
name 'Copy cell'
end
entry do
command 'V'
name 'Paste cell below'
end
entry do
command 'D D'
name 'Delete Cell'
notes 'Press twice'
end
entry do
command 'Z'
name 'Undo delete'
end
entry do
command 'CTRL+SHIFT+-'
name 'Split cell at cursor'
end
entry do
command 'SHIFT+='
name 'Merge with cell below'
end
entry do
command 'SHIFT+M'
name 'Merge selected cells'
end
entry do
command 'L'
name 'Toggle line numbers'
end
entry do
command 'SHIFT+L'
name 'Toggle all cell line numbers'
end
entry do
command 'O'
command 'SHIFT+O'
name 'Toggle output'
end
end
category do
id 'Kernel'
entry do
command 'I'
name 'Interrupt kernel'
end
entry do
command '.'
name 'Restart kernel'
end
end
category do
id 'Inspector'
entry do
command 'CTRL+I'
name 'Open in new tab'
end
end
end