26–28 May 2025
Bari
Europe/Rome timezone

Requirements for the tutorials

During the meeting we plan to have a tutorial on Gammapy. 

This brief guide explains all the main steps needed to configure your machine for the Gammapy session at the VHEGAM meeting.

STEP 1 – Gammapy v1.3 installation 

We suggest installing the latest stable version of Gammapy (v.1.3) through conda; in this way, you will also have all the required additional packages (numpy, scipy, Astropy, regions, click, PyYAML, pydantic). You can run: 

curl -O https://gammapy.org/download/install/gammapy-1.3-environment.yml

conda env create -f gammapy-1.3-environment.yml

NB: sometimes this error may happen “curl: (60) SSL certificate problem: certificate has expired”. 

To solve it launch: 

curl -O -k https://gammapy.org/download/install/gammapy-1.3-environment.yml

conda env create -f gammapy-1.3-environment.yml
 

Finally activate this environment, by executing: 

conda activate gammapy-1.3 


You can check that installation was successfully by typing:

gammapy info 


You should get something like the following: 

System:
python_executable      : /opt/anaconda3/envs/gammapy-1.3/bin/python
python_version         : 3.11.10   
machine                : arm64     
system                 : Darwin    
Gammapy package:
version                : 1.3       
path                   : /opt/anaconda3/envs/gammapy-1.3/lib/python3.11/site-packages/gammapy
Other packages:
numpy                  : 2.1.3 
scipy                  : 1.14.1    
astropy                : 6.1.6     
regions                : 0.10      
click                  : 8.1.7     
yaml                   : 6.0.2     
IPython                : 8.27.0    
jupyterlab             : 4.2.6     
matplotlib             : 3.9.2     
pandas                 : 2.2.3     
healpy                 : 1.18.0    
iminuit                : 2.30.1    
sherpa                 : not installed
naima                  : 0.10.0    
emcee                  : 3.1.6     
corner                 : 2.2.3     
ray                    : 2.39.0    
Gammapy environment variables:
GAMMAPY_DATA           : not_set  

 

STEP 2 – Download notebooks 

The data to be used for the hands-on can be downloaded from the google drive folder

https://drive.google.com/drive/folders/0AGYTElmXuGuWUk9PVA

______________________________

You are now ready for the Gammapy session!

______________________________

If you want to open the notebooks, you might want to use the jupyter-lab (or alternatively jupyter-notebook if you prefer) from command line:

jupyter-lab Notebook.ipynb 

 

See you on Tuesday!