Tutorial notebooks

This page lists the Gammapy tutorials that are available as Jupyter notebooks.

You can read them here, or execute them using a temporary cloud server in Binder.

To execute them locally, you have to first install Gammapy locally and download the tutorial notebooks and example datasets. The setup steps are described here: Getting Started. Remember that you can always use gammapy info to check your setup.


For a quick introduction to Gammapy, go here:

Interested to do a first analysis of simulated CTA data?

3-dimensional cube analysis:

2-dimensional sky image analysis:

1-dimensional spectral analysis:

Extra topics

These notebooks contain examples on some more specialised functionality in Gammapy.


Gammapy is a Python package built on Numpy and Astropy, so for now you have to learn a bit of Python, Numpy and Astropy to be able to use Gammapy. To make plots you have to learn a bit of matplotlib.

We plan to add a very simple to use high-level interface to Gammapy where you just have to adjust a config file, but that isn’t available yet.

Here are some great resources:

Other useful resources: