All tutorials are Python-based Jupyter notebooks. The instructions below explain how to install the necessary Python packages depending on the type of platform. The tutorial 2.6 on gravitational-wave skymap also requires the installation of the Aladin GUI ; installation instructions are provided at the bottom of this page for all platforms.
Easy (No software installation; Works for any OS)
You can open any notebook in the Google Co-labs.
-
Click the GITHUB tab
-
Enter "gw-odw/odw-2019" in the search bar, and click enter to search
-
Double click the notebook of your choice
-
At the top of the notebook, there are 2 lines to install the needed Python modules
! wget -q https://raw.githubusercontent.com/gw-odw/odw-2019/master/requirements.txt -O requirements.txt
! pip install -q -r ./requirements.txt
Easy (No software installation; Works for any OS)
Intermediate (Some software installation; Will not work on Windows PC)
Note: this workshop will use Python version 2.7.
-
Install miniconda: https://conda.io/en/latest/miniconda.html
Choose the version for Python 2.7. See the installation instructions here: https://conda.io/projects/conda/en/latest/user-guide/install/ You may need to restart your computer after installation. -
Download or clone the git repo: https://github.com/gw-odw/odw-2019/archive/master.zip
git clone https://github.com/gw-odw/odw-2019.git
-
Add the conda-forge channel
conda config --add channels conda-forge
-
Move into the directory with the workshop git repo
cd odw-2019
-
Create the environment
conda create --name odw2019 python=2.7
-
Install the software
conda install --name odw2019 --file requirements.txt
conda install --name odw2019 -c conda-forge jupyter
-
Activate the enviornment
conda activate odw2019
-
Start the jupyter notebook server
jupyter notebook
Install a Linux distribution on your Windows system. See instructions here: https://docs.microsoft.com/en-us/windows/wsl/install-win10
We suggest you install Debian GNU/Linux, which is the closest distribution to what is used currently by LIGO/Virgo. Once you have Linux installed, follow the instructions in Option 2.
To install the Aladin GUI, follow the instructions here: https://aladin.u-strasbg.fr/java/nph-aladin.pl?frame=downloading