day1/tot.tex
author Santosh G. Vattam <vattam.santosh@gmail.com>
Thu, 21 Jan 2010 14:50:19 +0530
changeset 356 ba5bf0e476d8
child 357 75e997864adb
permissions -rw-r--r--
Added tricks of the trade slides.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
356
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
     1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
     2
%Tutorial slides on Python.
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
     3
%
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
     4
% Author: FOSSEE 
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
     5
% Copyright (c) 2009, FOSSEE, IIT Bombay
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
     6
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
     7
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
     8
\documentclass[14pt,compress]{beamer}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
     9
%\documentclass[draft]{beamer}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    10
%\documentclass[compress,handout]{beamer}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    11
%\usepackage{pgfpages} 
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    12
%\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    13
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    14
% Modified from: generic-ornate-15min-45min.de.tex
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    15
\mode<presentation>
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    16
{
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    17
  \usetheme{Warsaw}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    18
  \useoutertheme{infolines}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    19
  \setbeamercovered{transparent}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    20
}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    21
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    22
\usepackage[english]{babel}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    23
\usepackage[latin1]{inputenc}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    24
%\usepackage{times}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    25
\usepackage[T1]{fontenc}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    26
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    27
% Taken from Fernando's slides.
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    28
\usepackage{ae,aecompl}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    29
\usepackage{mathpazo,courier,euler}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    30
\usepackage[scaled=.95]{helvet}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    31
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    32
\definecolor{darkgreen}{rgb}{0,0.5,0}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    33
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    34
\usepackage{listings}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    35
\lstset{language=Python,
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    36
    basicstyle=\ttfamily\bfseries,
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    37
    commentstyle=\color{red}\itshape,
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    38
  stringstyle=\color{darkgreen},
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    39
  showstringspaces=false,
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    40
  keywordstyle=\color{blue}\bfseries}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    41
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    42
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    43
% Macros
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    44
\setbeamercolor{emphbar}{bg=blue!20, fg=black}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    45
\newcommand{\emphbar}[1]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    46
{\begin{beamercolorbox}[rounded=true]{emphbar} 
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    47
      {#1}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    48
 \end{beamercolorbox}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    49
}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    50
\newcounter{time}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    51
\setcounter{time}{0}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    52
\newcommand{\inctime}[1]{\addtocounter{time}{#1}{\tiny \thetime\ m}}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    53
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    54
\newcommand{\typ}[1]{\lstinline{#1}}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    55
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    56
\newcommand{\kwrd}[1]{ \texttt{\textbf{\color{blue}{#1}}}  }
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    57
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    58
%%% This is from Fernando's setup.
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    59
% \usepackage{color}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    60
% \definecolor{orange}{cmyk}{0,0.4,0.8,0.2}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    61
% % Use and configure listings package for nicely formatted code
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    62
% \usepackage{listings}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    63
% \lstset{
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    64
%    language=Python,
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    65
%    basicstyle=\small\ttfamily,
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    66
%    commentstyle=\ttfamily\color{blue},
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    67
%    stringstyle=\ttfamily\color{orange},
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    68
%    showstringspaces=false,
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    69
%    breaklines=true,
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    70
%    postbreak = \space\dots
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    71
% }
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    72
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    73
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    74
% Title page
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    75
\title[Tricks of the trade]{Python for Science and Engg: Tricks of the trade}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    76
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    77
\author[FOSSEE] {FOSSEE}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    78
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    79
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    80
\date[] {28 January, 2010\\Day 1, Introduction}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    81
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    82
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    83
%\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    84
%\logo{\pgfuseimage{iitmlogo}}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    85
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    86
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    87
%% Delete this, if you do not want the table of contents to pop up at
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    88
%% the beginning of each subsection:
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    89
\AtBeginSubsection[]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    90
{
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    91
  \begin{frame}<beamer>
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    92
    \frametitle{Outline}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    93
    \tableofcontents[currentsection,currentsubsection]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    94
  \end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    95
}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    96
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    97
\AtBeginSection[]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    98
{
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
    99
  \begin{frame}<beamer>
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   100
    \frametitle{Outline}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   101
    \tableofcontents[currentsection,currentsubsection]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   102
  \end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   103
}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   104
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   105
% If you wish to uncover everything in a step-wise fashion, uncomment
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   106
% the following command: 
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   107
%\beamerdefaultoverlayspecification{<+->}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   108
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   109
%%\includeonlyframes{current,current1,current2,current3,current4,current5,current6}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   110
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   111
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   112
% DOCUMENT STARTS
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   113
\begin{document}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   114
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   115
\begin{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   116
  \maketitle
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   117
\end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   118
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   119
%% \begin{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   120
%%   \frametitle{Outline}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   121
%%   \tableofcontents
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   122
%%   % You might wish to add the option [pausesections]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   123
%% \end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   124
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   125
\begin{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   126
  \frametitle{Workshop Schedule: Day 1}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   127
  \begin{description}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   128
	\item[Session 1] Mon 09:00--10:00
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   129
	\item[Session 2] Mon 10:05--11:05
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   130
	\item[Session 3] Mon 11:20--12:20
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   131
	\item[Session 4] Mon 12:25--13:25
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   132
        \item[Quiz 1] Mon 14:25--14:40
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   133
        \item[Exercises] Mon 14:40--15:25
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   134
        \item[Session 5] Mon 15:40--16:40
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   135
        \item[Quiz 2] Mon 16:45--17:00
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   136
  \end{description}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   137
\end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   138
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   139
\begin{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   140
  \frametitle{Workshop Schedule: Day 2}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   141
  \begin{description}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   142
	\item[Session 1] Tue 09:00--10:00
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   143
	\item[Session 2] Tue 10:05--11:05
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   144
	\item[Session 3] Tue 11:20--12:20
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   145
	\item[Session 4] Tue 12:25--13:25
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   146
        \item[Quiz 1]  Tue 14:25--14:40
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   147
        \item[Exercises] Tue 14:40--15:25
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   148
        \item[Session 5] Tue 15:40--16:40
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   149
        \item[Quiz 2]  Tue 16:45--17:00
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   150
  \end{description}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   151
\end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   152
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   153
\section{Checklist}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   154
\begin{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   155
\frametitle{Checklist}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   156
  \begin{enumerate}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   157
    \item IPython
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   158
    \item Editor: We recommend \alert{scite}.
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   159
    \item Data files: 
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   160
      \begin{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   161
      \item \typ{sslc1.txt}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   162
      \item \typ{pendulum.txt}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   163
      \item \typ{points.txt}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   164
      \item \typ{pos.txt}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   165
      \item \typ{holmes.txt}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   166
      \end{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   167
    \item Python scripts: 
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   168
      \begin{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   169
      \item \typ{sslc_allreg.py}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   170
      \item \typ{sslc_science.py}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   171
      \end{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   172
    \item Images
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   173
      \begin{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   174
      \item \typ{lena.png}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   175
      \item \typ{smoothing.gif}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   176
      \end{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   177
  \end{enumerate}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   178
\end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   179
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   180
\section{Starting up Ipython}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   181
\begin{frame}[fragile]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   182
\frametitle{Starting up \ldots}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   183
\begin{block}{}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   184
\begin{lstlisting}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   185
  $ ipython -pylab  
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   186
\end{lstlisting} %$
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   187
\end{block}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   188
\begin{lstlisting}     
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   189
  In []: print "Hello, World!"
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   190
  Hello, World!
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   191
\end{lstlisting}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   192
Exiting
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   193
\begin{lstlisting}     
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   194
  In []: ^D(Ctrl-D)
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   195
  Do you really want to exit([y]/n)? y
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   196
\end{lstlisting}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   197
\end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   198
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   199
\section{Loops - Indentation and Breaking out of loops}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   200
\begin{frame}[fragile]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   201
\frametitle{Loops}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   202
Breaking out of loops
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   203
\begin{lstlisting}     
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   204
  In []: while True:
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   205
    ...:     print "Hello, World!"
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   206
    ...:     
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   207
  Hello, World!
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   208
  Hello, World!^C(Ctrl-C)
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   209
  ------------------------------------
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   210
  KeyboardInterrupt                   
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   211
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   212
\end{lstlisting}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   213
\emphbar{\alert{Indentation: Notice the 4 spaces after\\} \typ{while True:}}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   214
\end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   215
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   216
\section{Saving Commands}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   217
\begin{frame}[fragile]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   218
\frametitle{History and Saving of Commands}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   219
\begin{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   220
\item \typ{\%hist} gives complete history of commands in a session
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   221
\item \typ{\%save} can be used to save the commands
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   222
\end{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   223
\begin{block}{Careful about errors!}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   224
  \kwrd{\%hist} will contain the errors as well,\\
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   225
  so be careful while selecting line numbers.
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   226
\end{block}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   227
\end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   228
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   229
\section{Editors}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   230
\begin{frame}[fragile]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   231
  \frametitle{Editors}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   232
  The following are some good editors:
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   233
  \begin{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   234
  \item emacs
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   235
  \item vim
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   236
  \item scite - we recommend scite
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   237
  \end{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   238
\end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   239
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   240
\section{Scite - How to}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   241
\begin{frame}[fragile]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   242
  \frametitle{Scite - How to \ldots}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   243
  \begin{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   244
  \item Opening a file
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   245
  \item Saving a file
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   246
  \item Exiting the editor
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   247
  \end{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   248
\end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   249
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   250
\section{Summary}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   251
\begin{frame}[fragile]
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   252
  \frametitle{What did we learn?}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   253
  \begin{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   254
    \item Starting up IPython
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   255
    \item Loops - Indentation and breaking out of loops
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   256
    \item \kwrd{\%hist}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   257
    \item Saving commands to a script
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   258
  \end{itemize}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   259
\end{frame}
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   260
ba5bf0e476d8 Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff changeset
   261
\end{document}