Choose an option below.
Easy (No software installation; Works for any OS)
-
Click the GITHUB tab
-
Enter "gw-odw/odw-2020" in the search bar, and click enter to search
-
Double click the notebook of your choice
-
At the top of the notebook, uncomment any
pip install
commands by removing the#
#! pip install -q 'gwpy==1.0.1
<-- Remove the #
and run
(you will probably see the warning: Unrecognised runtime "igwin-py37"; defaulting to "python3"
. Don't worry it is an expected behaviour)
- Click
run all
from theruntime
menu at the top
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 3.7
-
Install miniconda: https://conda.io/en/latest/miniconda.html
Choose the version for Python 3.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 the IGWN YML file for the IGWN Conda Distribution
-
Add the conda-forge channel
conda config --add channels conda-forge
-
Create the environment
conda env create --file igwn-py37.yaml
-
Clone the workshop git repo
git clone https://github.com/gw-odw/odw-2020.git
-
Move into the directory with the workshop git repo
cd odw-2020
-
Activate the environment
conda activate igwn-py37
-
Update the gwosc package at the version 0.5.3 that will be used for this workshop
conda install gwosc=0.5.3
-
Build a custom jupyter kernel using the command
ipython kernel install --user --name=igwn-py37
or equivalently
python -m ipykernel install --user --name=igwn-py37
-
Start the jupyter notebook server
jupyter notebook
and select the kerneligwn-py37
if this is not done by default.
Troubleshooting:
- The kernel
igwn-py37
should appear in the list returned by the commandjupyter kernelspec list
executed in a terminal - If, when you run jupyter, you get the message:
Could not find kernel matching igwn-py37. Please select a kernel: Python 3
this indicates theigwn-py37
kernel is not installed properly. Make sure you executed step 9)
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 3.