diff options
author | Anoop Jacob Thomas | 2010-10-12 00:25:54 +0530 |
---|---|---|
committer | Anoop Jacob Thomas | 2010-10-12 00:25:54 +0530 |
commit | 3b1ace731619462742e785cd82bcf1150d15be9a (patch) | |
tree | 1c7f097419b4a2d679d099263a690a684f92f9c3 | |
parent | 6119339b5350ca88205f5927471028da5c299121 (diff) | |
parent | 009f4751e5a81caaff6caa3aec0cee4ad07a69d1 (diff) | |
download | st-scripts-3b1ace731619462742e785cd82bcf1150d15be9a.tar.gz st-scripts-3b1ace731619462742e785cd82bcf1150d15be9a.tar.bz2 st-scripts-3b1ace731619462742e785cd82bcf1150d15be9a.zip |
Merged.
-rw-r--r-- | additional_ipython/quickref.tex | 20 |
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|} |