Python for Astronomy Tutorial

Instructor: Brett Morris

Thursday, October 10, 2019

Harrison 170

University of Exeter

Rough Schedule

Lesson Time
Intro to HDF5 9:30-10:00
Packaging tutorial 10:00-12:30

Setup

If you’re a conda user, simply type:

conda install numpy scipy astropy matplotlib h5py 
conda install -c conda-forge jupyterlab

If you prefer pip, type:

pip install numpy scipy astropy matplotlib h5py jupyterlab

Further reading

For additional resources on getting up to speed in Python, I highly recommend Jake Van der Plas’ book A Whirlwind Tour of Python, which is currently available for free. If you’re ready to go deeper, there are many freely available books on Python to try.

Python Packaging Tutorial

Example repo: leonard

Packaging references

Next steps

General style tips