Home | Syllabus | Class Policies | Computing Resources | Problem Sets |
|
The majority of astrophysical research is done on the computer. In this class, we will use the Python computing language. No prior Python experience is required, but is expected that you will quickly learn the basics of computing.
Getting Started
Python Setup
- A255 Unix Tutorial
Learning to Program in Python
- See Problem Set #1 for a walk through of the setup process.
- Install Anaconda. This includes the python packages numpy, scipy and ipython.
- Alternatively, install Enthought Canopy.
- Learn Python the Hard Way is in fact the easiest way to get started in python.
- Watch Google Python Class 1.1. Do first exercise (string1.py).
- Watch Google Python Class 1.2. Do second exercise (list1.py).
- Watch Google Python Class 1.3. Note minute 9:30 when the Google search engine is explained in two lines of code. Do third exercise (wordcount.py).
More Useful Python Links
- Berkeley's Python Boot Camp Watch video lectures, download lecture slides, many ipython examples.
- Style Guide for python code as discussed in Lecture 2.
Home | Syllabus | Class Policies | Computing Resources | Problem Sets |