- Create a new environment
module load python
module load jupyter-kernels
module load fi-utils
VENVDIR=/mnt/home/kiyer/jhive/
python -m venv --system-site-packages $VENVDIR/jhive_env
source $VENVDIR/jhive_env/bin/activate
- Clone the FSPS repository
mkdir packages
cd packages
git clone https://github.com/cconroy20/fsps.git
- Setup an environment variable for SPS-HOME
export SPS_HOME=/mnt/home/kiyer/packages/fsps/
# or add it to your bashrc/cshrc/zshrc file
- Install python-fsps
python -m pip install fsps
- Install other dependencies if needed
pip install statsmodels hickle schwimmbad wget corner
- Clone and install dense basis
git clone https://github.com/kartheikiyer/dense_basis.git
cd dense_basis
python setup.py install
# and check if it works with
python -c 'import dense_basis as db'
- Make it available as a jupyter kernel
python -m make-custom-kernel densebasis
deactivate
And you're set!
also useful: