-
Notifications
You must be signed in to change notification settings - Fork 4
/
part01.tex
93 lines (70 loc) · 2.57 KB
/
part01.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
\documentclass[english,serif,mathserif,xcolor=pdftex,dvipsnames,table]{beamer}
\usetheme[informal]{s3it}
\usepackage{s3it}
\title[Set-up]{%
Setting up your workspace for the course
}
\author[S3IT]{%
S3IT: Services and Support for Science IT, \\
University of Zurich
}
\date{June~23--24, 2014}
\begin{document}
% title frame
\maketitle
\begin{frame}
\frametitle{Set-up for Python development}
A bare-bones development environment consists of:
\begin{itemize}
\item A text editor (e.g.,
\href{http://en.wikipedia.org/wiki/Gedit}{gedit},
\href{http://hide1713.wordpress.com/2009/01/30/setup-perfect-python-environment-in-emacs/}{emacs},
\href{http://blog.dispatched.ch/2009/05/24/vim-as-python-ide/}{vim})
\item The Python interpreter (it is installed by default on
Ubuntu and almost any other Linux distribution)
\item A terminal application to run the interpreter in.
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Option 1: Run locally on your laptop}
Install the appropriate software and you're ready to go.
\+
Our recommendations:
\begin{itemize}
\item Anaconda Python: {\footnotesize \url{http://www.continuum.io/downloads}}
\item PyCharm: {\footnotesize \url{http://www.jetbrains.com/pycharm/download}}
\end{itemize}
\+
But any combination of Python + editor + terminal will do: So
feel free to \emph{use your own choice of tools!}
\+ {\small For a commented list of {IDEs} with Python support, see:}
{\footnotesize
\url{http://wiki.python.org/moin/IntegratedDevelopmentEnvironments}}
\end{frame}
\begin{frame}
\frametitle{Option 2: use the cloud, Luke!}
Sing up to \url{http://wakari.io/}.
\+
It's free and more than enough for the course!
\end{frame}
\begin{frame}[fragile]
\frametitle{Ready, set, go!}
Now that your development environment is set up, let's run your
first Python program.
\begin{enumerate}
\item Create a directory for holding the course files.
\item Download the \href{https://raw.github.com/gc3-uzh-ch/python-course/master/welcome.py}{\texttt{welcome.py}} into it.
\item Start the terminal application, and \texttt{cd} to the directory you created.
\item Start the Python interpreter by typing the command ``\texttt{python}'', when the interpreter is ready, it will display this prompt string `\texttt{>>>}'
\item Now type the following command:
\begin{lstlisting}
>>> import welcome
\end{lstlisting}
\item You should see a welcome message appear on your screen.
\end{enumerate}
\end{frame}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: