Last active
September 18, 2023 18:59
-
-
Save dkirkby/67a7b766d10f4c0b3839de547b48e075 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the latest name using tab completion or check sys.prefix from within jupyterhub | |
#module load python/3.8-anaconda-2020.11 | |
module load python/3.9-anaconda-2021.11 | |
# Create a new env. Only list the pkgs you need since they will be downloaded into ~/.conda/pkgs/ | |
#conda create -n desi pip ipython jupyter ipykernel numpy scipy matplotlib pyyaml | |
conda create -n desi39 pip ipython jupyter ipykernel numpy scipy matplotlib pyyaml astropy pandas | |
# conda activate <env> *was* not supported at NERSC yet but is now | |
conda activate desi39 | |
# endofnight needs: scikit-image, desimeter, psycopg2, sqlalchemy | |
# conda-forge packages needed for animation (added 2-Apr-2020) | |
#conda install -c conda-forge imagemagick ffmpeg | |
# Add standard packages using conda or pip | |
pip install fitsio | |
# Add DESI packages, e.g. | |
git clone https://github.com/desihub/$DESIPKG.git | |
cd $DESIPKG | |
pip install . | |
# Add packages under local development, e.g. | |
cd ~/DESI/code/fpoffline | |
pip install -e . | |
# To make this conda env visible as a jupyter kernel | |
# https://docs.nersc.gov/services/jupyter/#conda-environments-as-kernels | |
#python -m ipykernel install --user --name desi --display-name MyDESI | |
python -m ipykernel install --user --name desi39 --display-name desi39 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment