summaryrefslogtreecommitdiff
path: root/additional_ipython
diff options
context:
space:
mode:
authorNishanth Amuluru2010-10-11 22:52:06 +0530
committerNishanth Amuluru2010-10-11 22:52:06 +0530
commit437cfd5bfb9f675bcb11fa822dc0dfda4b3908f4 (patch)
treeaa2c86282a6ff6714790aa6f20852c830116714d /additional_ipython
parentdce0bafcd9cd6355974984f7aa3763c0de0dfd91 (diff)
downloadst-scripts-437cfd5bfb9f675bcb11fa822dc0dfda4b3908f4.tar.gz
st-scripts-437cfd5bfb9f675bcb11fa822dc0dfda4b3908f4.tar.bz2
st-scripts-437cfd5bfb9f675bcb11fa822dc0dfda4b3908f4.zip
Added quickref
Diffstat (limited to 'additional_ipython')
-rw-r--r--additional_ipython/quickref.tex20
1 files changed, 12 insertions, 8 deletions
diff --git a/additional_ipython/quickref.tex b/additional_ipython/quickref.tex
index a0212b3..1616316 100644
--- a/additional_ipython/quickref.tex
+++ b/additional_ipython/quickref.tex
@@ -1,11 +1,15 @@
-Creating a tuple:\\
-{\ex \lstinline| t = (1, "hello", 2.5)|}
+accessing history:\\
+{\ex \lstinline| \%hist|}
-Accessing elements of tuples:\\
-{\ex \lstinline| t[index] Ex: t[2]|}
+accessing particular line of history:\\
+{\ex \lstinline| \%hist line_number|}
-Accessing slices of tuples:\\
-{\ex \lstinline| t[start:stop:step]|}
+accessing particular range of history:\\
+{\ex \lstinline| \%hist start_line stop_line|}
+
+saving history to a file:\\
+{\ex \lstinline| \%save file_path line_numbers|}
+
+running a script:\\
+{\ex \lstinline| \%run -i file_path|}
-Swapping values:\\
-{\ex \lstinline| a, b = b, a|}