equal
deleted
inserted
replaced
154 In []: plt.plot(x, f(x)) |
154 In []: plt.plot(x, f(x)) |
155 \end{lstlisting} |
155 \end{lstlisting} |
156 \inctime{10} |
156 \inctime{10} |
157 \end{frame} |
157 \end{frame} |
158 |
158 |
159 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
160 % TIME: 10 m, running |
|
161 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
162 |
|
163 \section{Creating and running scripts} |
159 \section{Creating and running scripts} |
164 \begin{frame} |
160 \begin{frame} |
165 {Creating python files} |
161 {Creating python files} |
166 \begin{itemize} |
162 \begin{itemize} |
167 \item use your editor |
163 \item use your editor |
169 \item in IPython using \kwrd{\%run} |
165 \item in IPython using \kwrd{\%run} |
170 \end{itemize} |
166 \end{itemize} |
171 \inctime{5} |
167 \inctime{5} |
172 \end{frame} |
168 \end{frame} |
173 |
169 |
174 \section{Files Handling} |
170 \section{File Handling} |
175 \begin{frame}[fragile] |
171 \begin{frame}[fragile] |
176 \frametitle{File and \kwrd{for}} |
172 \frametitle{File and \kwrd{for}} |
177 \begin{lstlisting} |
173 \begin{lstlisting} |
178 In []: f = open('dummyfile') |
174 In []: f = open('dummyfile') |
179 |
175 |
264 \begin{frame}{Modules and \typ{import}} |
260 \begin{frame}{Modules and \typ{import}} |
265 \begin{itemize} |
261 \begin{itemize} |
266 \item \kwrd{import} x |
262 \item \kwrd{import} x |
267 \item \kwrd{from} x \kwrd{import} y |
263 \item \kwrd{from} x \kwrd{import} y |
268 \end{itemize} |
264 \end{itemize} |
|
265 \pause |
269 Whats the difference?? |
266 Whats the difference?? |
270 \inctime{5} |
267 \inctime{5} |
271 \end{frame} |
268 \end{frame} |
272 |
269 |
273 \end{document} |
270 \end{document} |