forked from tvhahn/weibull-knowledge-informed-ml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake_hpc_venv.sh
27 lines (24 loc) · 824 Bytes
/
make_hpc_venv.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
cd
module load python/3.8
virtualenv ~/weibull
source ~/weibull/bin/activate
pip install --no-index --upgrade pip
pip install --no-index pandas scipy scikit_learn matplotlib seaborn
pip install --no-index torch jupyterlab click h5py
# pip install python-dotenv # don't think I need this????
# create bash script for opening jupyter notebooks https://stackoverflow.com/a/4879146/9214620
cat << EOF >$VIRTUAL_ENV/bin/notebook.sh
#!/bin/bash
unset XDG_RUNTIME_DIR
jupyter-lab --ip \$(hostname -f) --no-browser
EOF
chmod u+x $VIRTUAL_ENV/bin/notebook.sh
# install unrar in environment since it does not
# exist by default on HPC system -- make from source
cd scratch
wget https://www.rarlab.com/rar/unrarsrc-6.0.7.tar.gz
tar -xf unrarsrc-6.0.7.tar.gz
cd unrar
make -f makefile
install -v -m755 unrar ~/weibull/bin