1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/bin/bash
set -e
export NEST_PYTHON_PREFIX="${NEST_INSTALL_DIR}/lib/${PYTHON_ENV}/site-packages"
export PYTHONPATH="${NEST_PYTHON_PREFIX}:${PYTHONPATH}"
export PATH="${NEST_INSTALL_DIR}/bin:${PATH}"
if [[ $1 = "nrnivmodl" ]]; then
shift
cd /home/shared/workspace/mechanisms
nrnivmodl $@
elif [[ $1 = "python" ]]; then
shift
cd /home/shared/workspace
python $@
elif [[ $1 = "jupyter" ]]; then
shift
jupyter notebook --allow-root --ip=* --port 8888 --no-browser --notebook-dir /home/shared --NotebookApp.token=""
else
cd /home/shared/workspace
python $@
fi
|