Commit a767c940 authored by Katharina Höflich's avatar Katharina Höflich

Fix env initialisation also for HLRN script

parent 43ce662a
......@@ -32,9 +32,11 @@ if [ -n "${1}" ]; then
else
cd ${HOME}
echo "host $(hostname)"
#
# the code below only works for
# conda version above 4.6
#
eval "$(conda shell.bash hook)" # properly initialise non-interactive shells
conda activate base && \
jupyter lab --ip=$(hostname) --no-browser
# for conda versions below 4.6 use
# source $HOME/miniconda3/bin/activate base && \
# jupyter lab --ip=$(hostname) --no-browser
fi
......@@ -39,8 +39,8 @@ else
cd $PBS_O_WORKDIR
echo "host $(hostname)"
#
# the code below works only for
# conda versions above 4.6
# the code below only works for
# conda version above 4.6
#
eval "$(conda shell.bash hook)" # properly initialise non-interactive shells
conda activate base && \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment