author | Santosh G. Vattam <vattam.santosh@gmail.com> |
Thu, 28 Jan 2010 15:02:15 +0530 | |
changeset 371 | 9956a5bcd0f5 |
parent 366 | ec4cb3ba7f09 |
permissions | -rw-r--r-- |
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} |
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
80 |
\date[] {28 January, 2010\\Day 1, Tricks of the Trade} |
356
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} |
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
128 |
\item[Tricks of the trade] Thu 09:00--09:30 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
129 |
\item[Session 1] Thu 09:30--10:30 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
130 |
\item[Session 2] Thu 10:45--11:45 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
131 |
\item[Session 3] Thu 11:50--12:30 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
132 |
\item[Session 4] Thu 12:30--1:30 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
133 |
\item[Quiz 1] Thu 14:30--14:45 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
134 |
\item[Exercises] Thu 14:45--15:30 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
135 |
\item[Session 5] Thu 15:45--16:45 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
136 |
\item[Quiz 2] Thu 16:50--17:05 |
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
137 |
\end{description} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
138 |
\end{frame} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
139 |
|
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
140 |
\begin{frame} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
141 |
\frametitle{Workshop Schedule: Day 2} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
142 |
\begin{description} |
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
143 |
\item[Session 1] Fri 09:00--10:00 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
144 |
\item[Session 2] Fri 10:05--11:05 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
145 |
\item[Session 3] Fri 11:20--12:20 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
146 |
\item[Session 4] Fri 12:25--13:25 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
147 |
\item[Quiz 1] Fri 14:25--14:40 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
148 |
\item[Exercises] Fri 14:40--15:25 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
149 |
\item[Session 5] Fri 15:40--16:40 |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
150 |
\item[Quiz 2] Fri 16:45--17:00 |
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
151 |
\end{description} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
152 |
\end{frame} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
153 |
|
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
154 |
\section{Checklist} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
155 |
\begin{frame} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
156 |
\frametitle{Checklist} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
157 |
\begin{enumerate} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
158 |
\item IPython |
366
ec4cb3ba7f09
Changed all sessions based on tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
364
diff
changeset
|
159 |
\item Editor |
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
160 |
\item Data files: |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
161 |
\begin{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
162 |
\item \typ{sslc1.txt} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
163 |
\item \typ{pendulum.txt} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
164 |
\item \typ{points.txt} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
165 |
\item \typ{pos.txt} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
166 |
\item \typ{holmes.txt} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
167 |
\end{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
168 |
\item Python scripts: |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
169 |
\begin{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
170 |
\item \typ{sslc_allreg.py} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
171 |
\item \typ{sslc_science.py} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
172 |
\end{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
173 |
\item Images |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
174 |
\begin{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
175 |
\item \typ{lena.png} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
176 |
\item \typ{smoothing.gif} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
177 |
\end{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
178 |
\end{enumerate} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
179 |
\end{frame} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
180 |
|
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
181 |
\section{Starting up Ipython} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
182 |
\begin{frame}[fragile] |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
183 |
\frametitle{Starting up \ldots} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
184 |
\begin{block}{} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
185 |
\begin{lstlisting} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
186 |
$ ipython -pylab |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
187 |
\end{lstlisting} %$ |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
188 |
\end{block} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
189 |
\begin{lstlisting} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
190 |
In []: print "Hello, World!" |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
191 |
Hello, World! |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
192 |
\end{lstlisting} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
193 |
Exiting |
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
194 |
\begin{lstlisting} |
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
195 |
In []: ^D(Ctrl-D) |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
196 |
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
|
197 |
\end{lstlisting} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
198 |
\end{frame} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
199 |
|
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
200 |
\section{Loops} |
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
201 |
\begin{frame}[fragile] |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
202 |
\frametitle{Loops} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
203 |
Breaking out of loops |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
204 |
\begin{lstlisting} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
205 |
In []: while True: |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
206 |
...: print "Hello, World!" |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
207 |
...: |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
208 |
Hello, World! |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
209 |
Hello, World!^C(Ctrl-C) |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
210 |
------------------------------------ |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
211 |
KeyboardInterrupt |
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
212 |
\end{lstlisting} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
213 |
\end{frame} |
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
214 |
|
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
215 |
\section{Indentation} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
216 |
\begin{frame}[fragile] |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
217 |
\frametitle{Indentation} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
218 |
\begin{lstlisting} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
219 |
In []: while True: |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
220 |
...: print "Hello, World!" |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
221 |
...: |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
222 |
\end{lstlisting} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
223 |
\emphbar{\alert{Indentation: Notice the 4 spaces before\\} \typ{print "Hello, World!"}\\ |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
224 |
Hit the ``ENTER'' key twice to return to the previous indentation level} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
225 |
\end{frame} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
226 |
|
363
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
227 |
\section{Tab Completion} |
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
228 |
\begin{frame}[fragile] |
363
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
229 |
\frametitle{Tab Completion} |
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
230 |
Type \typ{pri} and hit the Tab key |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
231 |
\begin{lstlisting} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
232 |
In []: pri <Tab> |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
233 |
In []: print |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
234 |
\end{lstlisting} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
235 |
Type \typ{whi} and hit the Tab key |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
236 |
\begin{lstlisting} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
237 |
In []: whi <Tab> |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
238 |
In []: while |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
239 |
\end{lstlisting} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
240 |
\end{frame} |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
241 |
|
363
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
242 |
\section{Tab Suggestions} |
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
243 |
\begin{frame}[fragile] |
363
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
244 |
\frametitle{Tab Suggestions} |
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
245 |
\begin{lstlisting} |
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
246 |
In []: a = 'Hello world' |
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
247 |
|
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
248 |
In []: a.<Tab> |
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
249 |
\end{lstlisting} |
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
250 |
\ldots |
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
251 |
\end{frame} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
252 |
|
366
ec4cb3ba7f09
Changed all sessions based on tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
364
diff
changeset
|
253 |
\section{Command history} |
ec4cb3ba7f09
Changed all sessions based on tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
364
diff
changeset
|
254 |
\begin{frame}[fragile] |
ec4cb3ba7f09
Changed all sessions based on tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
364
diff
changeset
|
255 |
\frametitle{Command history} |
ec4cb3ba7f09
Changed all sessions based on tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
364
diff
changeset
|
256 |
\typ{In []:} \alert{$\uparrow$}\\ |
ec4cb3ba7f09
Changed all sessions based on tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
364
diff
changeset
|
257 |
\typ{In []: a = 'Hello world'}\\ |
ec4cb3ba7f09
Changed all sessions based on tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
364
diff
changeset
|
258 |
\emphbar{The previously entered commands can be browsed using the \alert{$\uparrow$} key.} |
ec4cb3ba7f09
Changed all sessions based on tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
364
diff
changeset
|
259 |
\end{frame} |
ec4cb3ba7f09
Changed all sessions based on tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
364
diff
changeset
|
260 |
|
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
261 |
\section{Saving Commands} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
262 |
\begin{frame}[fragile] |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
263 |
\frametitle{History and Saving of Commands} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
264 |
\begin{itemize} |
364
856470d9a952
Minor edits on tot.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
363
diff
changeset
|
265 |
\item \typ{\%hist} gives history of commands in a session |
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
266 |
\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
|
267 |
\end{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
268 |
\begin{block}{Careful about errors!} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
269 |
\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
|
270 |
so be careful while selecting line numbers. |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
271 |
\end{block} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
272 |
\end{frame} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
273 |
|
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
274 |
\section{Editors} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
275 |
\begin{frame}[fragile] |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
276 |
\frametitle{Editors} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
277 |
The following are some good editors: |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
278 |
\begin{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
279 |
\item emacs |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
280 |
\item vim |
364
856470d9a952
Minor edits on tot.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
363
diff
changeset
|
281 |
\item \alert{scite} - we recommend it |
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
282 |
\end{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
283 |
\end{frame} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
284 |
|
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
285 |
\section{Scite - How to} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
286 |
\begin{frame}[fragile] |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
287 |
\frametitle{Scite - How to \ldots} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
288 |
\begin{itemize} |
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
289 |
\item Opening scite |
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
290 |
\begin{itemize} |
363
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
291 |
\item GNU/Linux: \alert{Applications} $\rightarrow$ \alert{Programming} $\rightarrow$ \alert{SciTE Text Editor} |
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
292 |
\item Windows: Double click on the \alert{SciTE} Desktop icon |
362
26c215c5a53b
Updated tot.tex and session 2 slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
357
diff
changeset
|
293 |
\end{itemize} |
357
75e997864adb
Minor edits to new session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
356
diff
changeset
|
294 |
\item Type the contents |
75e997864adb
Minor edits to new session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
356
diff
changeset
|
295 |
\item Saving the file with a filename \alert{File $\rightarrow$ Save as} |
363
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
296 |
\item Saving the file \alert{File $\rightarrow$ Save} |
357
75e997864adb
Minor edits to new session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
356
diff
changeset
|
297 |
\item Exiting the editor \alert{File $\rightarrow$ Exit} |
75e997864adb
Minor edits to new session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
356
diff
changeset
|
298 |
\item To open an existing file: \alert{File $\rightarrow$ Open} |
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
299 |
\end{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
300 |
\end{frame} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
301 |
|
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
302 |
\section{Summary} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
303 |
\begin{frame}[fragile] |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
304 |
\frametitle{What did we learn?} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
305 |
\begin{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
306 |
\item Starting up IPython |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
307 |
\item Loops - Indentation and breaking out of loops |
357
75e997864adb
Minor edits to new session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
356
diff
changeset
|
308 |
\item \kwrd{\%hist} - History of commands |
75e997864adb
Minor edits to new session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
356
diff
changeset
|
309 |
\item \kwrd{\%save} - Saving commands |
363
20ec695eff0b
Updated tot session.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
362
diff
changeset
|
310 |
\item Using SciTE |
356
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
311 |
\end{itemize} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
312 |
\end{frame} |
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
313 |
|
ba5bf0e476d8
Added tricks of the trade slides.
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
diff
changeset
|
314 |
\end{document} |