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 in Getting Started. Once Gammapy installed, 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?

To get started with H.E.S.S. data analysis see here:

3-dimensional cube analysis:

2-dimensional sky image analysis:

1-dimensional spectral analysis:

Time-dependent 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: