-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathipython-shortcuts.tex
More file actions
99 lines (84 loc) · 3.7 KB
/
ipython-shortcuts.tex
File metadata and controls
99 lines (84 loc) · 3.7 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
%% A very basic document template: 1 inch margins all round, no packages
%%
%% : 1.6 $
%% : 2013-03-26 05:22:51 $
%% : newdoc,v 1.6 2013-03-26 05:22:51 duncombe Exp $
%%
\documentclass[letterpaper,12pt,oneside]{article}
\batchmode
% define the page to have 1 inch margins all round
% \setlength{\oddsidemargin}{0pt}
% \setlength{\textwidth}{6.5in}
% \setlength{\topmargin}{0in}
% \setlength{\headsep}{0in}
% \setlength{\headheight}{0in}
% \setlength{\textheight}{9in}
%%%%%%%%%%%%%%%%%%
% include packages
%%%%%%%%%%%%%%%%%%
\usepackage[letterpaper,left=1.0in,right=1.0in,top=1.0in,bottom=1.0in]{geometry}
\usepackage{url}
% some potentially useful packs
% \usepackage{graphicx}
%%%%%%%%%%%%%%%%%%%%%%
% for the bibliography
%%%%%%%%%%%%%%%%%%%%%%
%% Use one of natbib or apalike (or another)
% \usepackage[square]{natbib}
% \usepackage[square]{apalike}
%% set a new line for the references section
% \newcommand{\refheading}{Bibliography}
% \AtBeginDocument{\renewcommand\refname{\large \refheading}}
%% then define one of
% \bibliographystyle{ametsoc}
% \bibliographystyle{/usr/share/texmf/bibtex/bst/natbib/plainnat.bst}
% \bibliographystyle{/usr/share/texmf/bibtex/bst/natbib/unsrtnat.bst}
% \bibliographystyle{unsrtnat}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% beginning of the document
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{empty}
\begin{document}
% \bibliography{./abs,./cmdrrefs}
\begin{center}
\textbf{\large IPython Keyboard Shortcuts}
\end{center}
\textbf{Command Mode (press {\tt esc} to enable)}
\begin{tabular}{rlrl}
&&&\\
{\tt enter} &edit mode & {\tt ctrl}-{\tt j} & move cell down\\
{\tt shift}-{\tt enter} & run cell, select below & {\tt a} & insert cell above \\
{\tt ctrl}-{\tt enter} & run cell & {\tt b} & insert cell below \\
{\tt alt}-{\tt enter}& run cell, insert below & {\tt x} & cut cell \\
{\tt y} & to code& {\tt c} & copy cell \\
{\tt m} & to markdown & {\tt shift}-{\tt v} & paste cell above \\
{\tt r} & to raw & {\tt v} & paste cell below\\
{\tt 1} & to heading 1 & {\tt z} & undo last delete \\
{\tt 2} & to heading 2 & {\tt d} {\tt d} & delete cell (press twice) \\
{\tt 3} & to heading 3 & {\tt shift}-{\tt m} & merge cell below \\
{\tt 4} & to heading 4 & {\tt s} & save notebook \\
{\tt 5} & to heading 5 & {\tt ctrl}-{\tt s} & undo last delete \\
{\tt 6} & to heading 6 & {\tt l} & toggle line numbers \\
{\tt up} & select previous cell & {\tt o} & toggle output \\
{\tt down} & select next cell & {\tt shift}-{\tt o} & toggle output scrolling \\
{\tt k} & select previous cell & {\tt q} & close pager \\
{\tt j} & select next cell & {\tt h} & keyboard shortcuts \\
{\tt ctrl}-{\tt k} & move cell up& {\tt i} {\tt i} & interrupt kernel (press twice) \\
& & {\tt 0} {\tt 0} & restart kernel (press zero twice) \\
&&&\\
\multicolumn{4}{l}{\textbf{Edit mode (press {\tt enter} to enable)}} \\
&&&\\
{\tt tab} & code completion or indent &{\tt ctrl}-{\tt down} & go to cell end \\
{\tt shift}-{\tt tab} &tooltip & {\tt ctrl}-{\tt left} & go one word left \\
{\tt ctrl}-{\tt ]}&indent & {\tt ctrl}-{\tt right} & go one word right \\
{\tt ctrl}-{\tt [}&dedent &{\tt ctrl}-{\tt backspace} & delete word before \\
{\tt ctrl}-{\tt a}&select all &{\tt ctrl}-{\tt delete} & delete word before \\
{\tt ctrl}-{\tt z}&undo &{\tt esc} & command mode \\
{\tt shift}-{\tt ctrl}-{\tt z}&redo &{\tt ctrl}-{\tt m} & command mode \\
{\tt ctrl}-{\tt y}&redo &{\tt shift}-{\tt enter} & run cell, select below \\
{\tt ctrl}-{\tt home}&go to cell start &{\tt ctrl}-{\tt enter} & run cell \\
{\tt ctrl}-{\tt up}&go to cell start &{\tt alt}-{\tt enter} & run cell, insert below \\
{\tt ctrl}-{\tt end}&go to cell end &{\tt ctrl}-{\tt shift}-{\tt -} & split cell \\
& & {\tt ctrl}-{\tt s} & save notebook \\
\end{tabular}
\end{document}