summaryrefslogtreecommitdiff
path: root/day1
diff options
context:
space:
mode:
authorSantosh G. Vattam2010-01-27 21:42:07 +0530
committerSantosh G. Vattam2010-01-27 21:42:07 +0530
commitf3bc22f4d5745046dcee72d40dcfb5191d084025 (patch)
tree12eef489416d701c8659acccf81831736a2d30b0 /day1
parent70b670dbfbe9be9f55691a6a46d5f3ca999f64ff (diff)
downloadworkshops-f3bc22f4d5745046dcee72d40dcfb5191d084025.tar.gz
workshops-f3bc22f4d5745046dcee72d40dcfb5191d084025.tar.bz2
workshops-f3bc22f4d5745046dcee72d40dcfb5191d084025.zip
Changed all sessions based on tot session.
Diffstat (limited to 'day1')
-rw-r--r--day1/session1.tex98
-rw-r--r--day1/session2.tex4
-rw-r--r--day1/session3.tex2
-rw-r--r--day1/session4.tex2
-rw-r--r--day1/session5.tex7
-rwxr-xr-xday1/session6.tex2
-rw-r--r--day1/tot.tex10
7 files changed, 19 insertions, 106 deletions
diff --git a/day1/session1.tex b/day1/session1.tex
index eb2dbe2..309e890 100644
--- a/day1/session1.tex
+++ b/day1/session1.tex
@@ -77,7 +77,7 @@
\author[FOSSEE] {FOSSEE}
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {11 January, 2010\\Day 1, Session 1}
+\date[] {28 January, 2010\\Day 1, Session 1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
@@ -123,34 +123,6 @@
%% \end{frame}
\begin{frame}
- \frametitle{Workshop Schedule: Day 1}
- \begin{description}
- \item[Session 1] Mon 09:00--10:00
- \item[Session 2] Mon 10:05--11:05
- \item[Session 3] Mon 11:20--12:20
- \item[Session 4] Mon 12:25--13:25
- \item[Quiz 1] Mon 14:25--14:40
- \item[Exercises] Mon 14:40--15:25
- \item[Session 5] Mon 15:40--16:40
- \item[Quiz 2] Mon 16:45--17:00
- \end{description}
-\end{frame}
-
-\begin{frame}
- \frametitle{Workshop Schedule: Day 2}
- \begin{description}
- \item[Session 1] Tue 09:00--10:00
- \item[Session 2] Tue 10:05--11:05
- \item[Session 3] Tue 11:20--12:20
- \item[Session 4] Tue 12:25--13:25
- \item[Quiz 1] Tue 14:25--14:40
- \item[Exercises] Tue 14:40--15:25
- \item[Session 5] Tue 15:40--16:40
- \item[Quiz 2] Tue 16:45--17:00
- \end{description}
-\end{frame}
-
-\begin{frame}
\frametitle{About the Workshop}
\begin{block}{Intended Audience}
\begin{itemize}
@@ -168,68 +140,7 @@
\end{block}
\end{frame}
-\section{Getting started}
-\begin{frame}
-\frametitle{Checklist}
- \begin{enumerate}
- \item IPython
- \item Editor: We recommend \alert{scite}.
- \item Data files:
- \begin{itemize}
- \item \typ{sslc1.txt}
- \item \typ{pendulum.txt}
- \item \typ{points.txt}
- \item \typ{pos.txt}
- \item \typ{holmes.txt}
- \end{itemize}
- \item Python scripts:
- \begin{itemize}
- \item \typ{sslc_allreg.py}
- \item \typ{sslc_science.py}
- \end{itemize}
- \item Images
- \begin{itemize}
- \item \typ{lena.png}
- \item \typ{smoothing.gif}
- \end{itemize}
- \end{enumerate}
-\end{frame}
-
-\begin{frame}[fragile]
-\frametitle{Starting up \ldots}
-\begin{block}{}
-\begin{lstlisting}
- $ ipython -pylab
-\end{lstlisting} %$
-\end{block}
-\begin{lstlisting}
- In []: print "Hello, World!"
- Hello, World!
-\end{lstlisting}
-Exiting
-\begin{lstlisting}
- In []: ^D(Ctrl-D)
- Do you really want to exit([y]/n)? y
-\end{lstlisting}
-\end{frame}
-
-%% \begin{frame}[fragile]
-%% \frametitle{Loops}
-%% Breaking out of loops
-%% \begin{lstlisting}
-%% In []: while True:
-%% ...: print "Hello, World!"
-%% ...:
-%% Hello, World!
-%% Hello, World!^C(Ctrl-C)
-%% ------------------------------------
-%% KeyboardInterrupt
-
-%% \end{lstlisting}
-%% \end{frame}
-
\section{Plotting}
-
\subsection{Drawing plots}
\begin{frame}[fragile]
\frametitle{First Plot}
@@ -249,7 +160,6 @@ In []: plot(x, sin(x))
\end{columns}
\end{frame}
-
\begin{frame}[fragile]
\frametitle{Walkthrough}
\begin{block}{\typ{x = linspace(start, stop, num)} }
@@ -488,9 +398,9 @@ In []: ylim(-5*pi, 5*pi)
\frametitle{Saving Commands}
Save commands of review problem into file
\begin{itemize}
-\item Use \typ{\%hist} command of IPython
+\item Use \typ{\%hist} command of IPython (Recall \%\typ{hist} from the previous session)
\item Identify the required line numbers
-\item Then, use \typ{\%save} command of IPython
+\item Then, use \typ{\%save} command of IPython (Recall \%\typ{save} from the previous session)
\end{itemize}
\typ{In []: \%hist}\\
\typ{In []: \%save four_plot.py} \alert{\typ{16 18-27}}
@@ -511,8 +421,6 @@ Save commands of review problem into file
\begin{frame}[fragile]
\frametitle{What did we learn?}
\begin{itemize}
- \item \kwrd{\%hist}
- \item Saving commands to a script
\item Running a script using \kwrd{\%run -i}
\item Creating simple plots.
\item Adding labels and legends.
diff --git a/day1/session2.tex b/day1/session2.tex
index 635220e..fb2e128 100644
--- a/day1/session2.tex
+++ b/day1/session2.tex
@@ -78,7 +78,7 @@
\author[FOSSEE] {FOSSEE}
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {11 January, 2010\\Day 1, Session 2}
+\date[] {28 January, 2010\\Day 1, Session 2}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
@@ -312,7 +312,7 @@ This gives \kwrd{tsq} which is the list of squares of \typ{t} values.
\begin{frame}[fragile]
\frametitle{How to come out of the \texttt{for} loop?}
- Hit the ``ENTER'' key twice to return to the previous indentation level
+ Recall that hitting the ``ENTER'' key twice returns the cursor to the previous indentation level
\begin{lstlisting}
In []: for time in t:
....: tsq.append(time*time)
diff --git a/day1/session3.tex b/day1/session3.tex
index 135bfc1..e785729 100644
--- a/day1/session3.tex
+++ b/day1/session3.tex
@@ -79,7 +79,7 @@
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {11 January, 2010\\Day 1, Session 3}
+\date[] {28 January, 2010\\Day 1, Session 3}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
diff --git a/day1/session4.tex b/day1/session4.tex
index 9195ff6..89e5e00 100644
--- a/day1/session4.tex
+++ b/day1/session4.tex
@@ -79,7 +79,7 @@
\author[FOSSEE] {FOSSEE}
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {11 January, 2010\\Day 1, Session 4}
+\date[] {28 January, 2010\\Day 1, Session 4}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
diff --git a/day1/session5.tex b/day1/session5.tex
index 1098b3e..791b393 100644
--- a/day1/session5.tex
+++ b/day1/session5.tex
@@ -78,7 +78,7 @@
\author[FOSSEE] {FOSSEE}
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {11 January, 2010\\Day 1, Session 5}
+\date[] {28 January, 2010\\Day 1, Session 5}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
@@ -127,10 +127,7 @@ for line in open('pendulum.txt'):
point = line.split()
l.append(float(point[0]))
t.append(float(point[1]))
-tsq = []
-for time in t:
- tsq.append(time*time)
-plot(l, tsq, '.')
+plot(l, t, '.')
\end{lstlisting}
\end{block}
\end{columns}
diff --git a/day1/session6.tex b/day1/session6.tex
index a5c1a2c..6ef775f 100755
--- a/day1/session6.tex
+++ b/day1/session6.tex
@@ -78,7 +78,7 @@
\author[FOSSEE] {FOSSEE}
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {11 January, 2010\\Day 1, Session 6}
+\date[] {28 January, 2010\\Day 1, Session 6}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
diff --git a/day1/tot.tex b/day1/tot.tex
index 0cacef4..5679b8a 100644
--- a/day1/tot.tex
+++ b/day1/tot.tex
@@ -156,7 +156,7 @@
\frametitle{Checklist}
\begin{enumerate}
\item IPython
- \item Editor: We recommend \alert{scite}.
+ \item Editor
\item Data files:
\begin{itemize}
\item \typ{sslc1.txt}
@@ -250,6 +250,14 @@ In []: a.<Tab>
\ldots
\end{frame}
+\section{Command history}
+\begin{frame}[fragile]
+ \frametitle{Command history}
+ \typ{In []:} \alert{$\uparrow$}\\
+ \typ{In []: a = 'Hello world'}\\
+ \emphbar{The previously entered commands can be browsed using the \alert{$\uparrow$} key.}
+\end{frame}
+
\section{Saving Commands}
\begin{frame}[fragile]
\frametitle{History and Saving of Commands}