In this section a 'Jupyter Notebook' is provided as an example of use of the different python methods available at the "esa-hreda" module.
The Jupyter Notebook App is a server-client application that allows editing and running notebook documents via
a web browser. The Notebook App can be executed on a local desktop requiring no internet access or can be installed on a
remote server and accessed through the internet. Jupyter Notebook App is included in the
Anaconda distribution
so we recommend to install also this product to work with the HREDA python wrapper even though it is not mandatory.
Jupyter comes together with anaconda. Anaconda can be downloaded from here (With Python 3.7 Version) .
Node.js can be downloaded from: here and install it directly.
If you use conda, you can get 'Node.js' with:
$ conda install -c conda-forge nodejs
If you use Homebrew on Mac OS X:
$ brew install node
Once that Anaconda and Node.js is installed, it is necessary to open a console and install the following Python packages (If they haven't been installed already):
$ pip install astroquery
By default the last version of astroquery is not provided. For HREDA, the latest version pf 'TapPlus' library is required. This library 'TapPlus' is provided as part of the package "Astroquery". In order to upgrade 'Astroquery' to the latest version, please execute the following command:
$ conda install -c astropy astroquery
$ pip install pytest
$ pip install ipywidgets
$ pip install ipython
Now you can install the HREDA python module
$ pip uninstall esa_hreda
$ pip install <wheel-HREDA-package.whl>
In order to open the notebook, at the command line execute:
$ jupyter-notebook
The Jupyter Notebook will be opened in a browser. Note that the files downloaded from the notebook will be stored at the directory from where the notebook was launched.
Remember that it is also possible to launch the Jupyter notebook directly from the Anaconda application.