Skip to content

Commit

Permalink
Properly install kernelspec on initialization (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmith- authored May 18, 2021
1 parent c041c14 commit fa5d0a1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,22 @@ install_env() {
echo "Installing shallow virtual environment in \$PWD/.env..."
python -m venv --without-pip --system-site-packages .env
unlink .env/lib64 # HTCondor can't transfer symlink to directory and it appears optional
# work around issues copying CVMFS xattr when copying to tmpdir
export TMPDIR=\$(mktemp -d -p .)
.env/bin/python -m ipykernel install --user
rm -rf \$TMPDIR && unset TMPDIR
.env/bin/python -m pip install -q git+https://github.com/CoffeaTeam/[email protected]
echo "done."
}
[[ -d .env ]] || install_env
source .env/bin/activate
alias pip="python -m pip"
export JUPYTER_PATH=/srv/.jupyter
export JUPYTER_RUNTIME_DIR=/srv/.local/share/jupyter/runtime
export JUPYTER_DATA_DIR=/srv/.local/share/jupyter
export IPYTHONDIR=/srv/.ipython
[[ -d .env ]] || install_env
source .env/bin/activate
alias pip="python -m pip"
EOF

chmod u+x shell .bashrc
Expand Down

0 comments on commit fa5d0a1

Please sign in to comment.