From 00ffec26f7f60649f9a8e4a2f0e283122cebe220 Mon Sep 17 00:00:00 2001
From: Prabhu Ramachandran
Date: Thu, 17 Jun 2010 20:58:42 -0400
Subject: Added changes to session 1.  Added some IPython tips.

--HG--
branch : scipy2010
---
 day1/session1.tex | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 53 insertions(+), 3 deletions(-)

(limited to 'day1/session1.tex')

diff --git a/day1/session1.tex b/day1/session1.tex
index be1994e..f29cff1 100644
--- a/day1/session1.tex
+++ b/day1/session1.tex
@@ -337,6 +337,32 @@ In []: ylabel('sin(2y)')
   \end{lstlisting}
 \end{frame}
 
+\begin{frame}[fragile]
+\frametitle{IPython tips \ldots}
+
+\begin{itemize}
+    \item Use \typ{TAB} to complete command 
+\end{itemize}
+        \vspace*{0.5in}
+
+        {\Large \structure{History}}
+\begin{itemize}
+    \item Accesses history (also from past sessions)
+
+    \item Up and down arrows (\typ{Ctrl-p}/\typ{Ctrl-n})
+
+    \item Search: \typ{Ctrl-r} and start typing
+
+    \item \typ{Ctrl-a}: go to start of line
+
+    \item \typ{Ctrl-e}: end of line
+
+    \item \typ{Ctrl-k}: kill to end of line
+\end{itemize}
+
+\end{frame}
+
+
 \subsection{More decoration}
 \begin{frame}[fragile]
 \frametitle{Title and Legends}
@@ -491,6 +517,29 @@ In []: ylim(ymin-0.2, ymax+0.2)
   \end{center}
 \end{frame}
 
+\begin{frame}[fragile]
+\frametitle{IPython tips \ldots}
+
+\begin{itemize}
+
+    \item Try:
+\begin{lstlisting}
+In []: plot?
+\end{lstlisting}
+        to get more information on \typ{plot} 
+
+        \vspace*{0.5in}
+    \item Try: 
+\begin{lstlisting}
+In []: plot?
+\end{lstlisting}
+    to see source code
+
+\end{itemize}
+
+\end{frame}
+
+
 \begin{frame}[fragile]
 \frametitle{Review Problem}
 \begin{enumerate}
@@ -584,10 +633,11 @@ To avoid this, run using \alert{\typ{\%run -i four_plot.py}}\\
   \frametitle{What did we learn?}
   \begin{itemize}
     \item Starting up IPython
-    \item Creating simple plots.
-    \item Adding labels and legends.
-    \item Annotating plots.
+    \item Creating simple plots
+    \item Adding labels and legends
+    \item Annotating plots
     \item Changing the looks: size, linewidth
+    \item Accessing history, documentation
     \item \kwrd{\%hist} - History of commands
     \item \kwrd{\%save} - Saving commands 
     \item Running a script using \kwrd{\%run -i}
-- 
cgit 

