Python programming workshop for the LEAPS/ASPIRE 2021 programme. There are four topics available!
An introduction to the fundamentals of using GitHub, including this repository! A hands-on guide to setting up a GitHub workflow.
A whirlwind tour past some fundamental Python tools used in astronomy. A quick read, with links to lots of further examples.
A group-based collaboration activity to go through the motions of forking, setting up a pull request, unit testing, and code review.
A quick fitting example using PyMC3 and Stan. Prior knowledge of Bayesian statistics useful.
If you have any questions, ping me an email at oliver.hall [at] esa [dot] int
! Or send me a message on Slack.
In order to work with this many of these tutorials on your computer, you're going to have to install Jupyter Notebooks, if you haven't done so already. Jupyter Notebook comes pre-packaged with Anaconda, if you have that installed. To open Jupyter Notebook, you just type:
jupyter notebook &
in commandline. This opens a Jupyter Notebook in a browser terminal (although it's not online, it just uses a browser to work). If you don't use Anaconda (and don't have Jupyter installed), you can do so as follows:
pip3 install --upgrade pip
pip3 install jupyter