AstroStats2013’s Python introduction
Example scripts and exercises:
Format of the tutorials
For most of the tutorials, there are 3 ways of going through it:
- HTML-page: requires you to type the examples yourself or
to copy the examples line-by-line because the input and output of the
lines of code are shown together, as well as the IPython input/output
cursors. This format is optimized for reading.
- commented Python script: allows you to execute the whole tutorial
at once or copy blocks of code, while being able to follow the structure of
the tutorial using the comments. Output of the code snippets is not shown.
Since some of the examples actually crash the code on purpose, you’ll need
to comment out those statements yourself.
- minimal Python script: only contains the relevant Python statements,
allowing you to easily copy and paste whole parts of the tutorial in the
IPython shell. Output of the code snippets is not shown. Since some of
the examples actually crash the code on purpose, you’ll need to comment
out those statements yourself.
If they are available, you can download the different file versions at the
top of each tutorial page.