.. _sphx_glr_tutorials_scripts: .. _tutorials_scripts: Scripts ======= For interactive use, IPython and Jupyter are great, and most Gammapy examples use those. However, for long-running, non-interactive tasks like data reduction or survey maps, you might prefer a Python script. The following example shows how to run Gammapy within a Python script. .. raw:: html <div class="sphx-glr-thumbnails"> .. thumbnail-parent-div-open .. raw:: html <div class="sphx-glr-thumbcontainer" tooltip="Make a survey counts map using a script."> .. only:: html .. image:: /tutorials/scripts/images/thumb/sphx_glr_survey_map_thumb.png :alt: :ref:`sphx_glr_tutorials_scripts_survey_map.py` .. raw:: html <div class="sphx-glr-thumbnail-title">Survey Map Script</div> </div> .. thumbnail-parent-div-close .. raw:: html </div> .. toctree:: :hidden: /tutorials/scripts/survey_map