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

Fully initialize conda (for non-interactive shells)

parent 9f6a5329
#!/bin/bash
#!/usr/bin/env bash
#PBS -N jupyterlab -o jupyterlab.out -j o
#
......@@ -38,14 +38,8 @@ if [ -n "${1}" ]; then
else
cd $PBS_O_WORKDIR
echo "host $(hostname)"
# ensure bashrc is sourced
#if [ -f ~/.bashrc ]; then
# . ~/.bashrc;
#fi
#conda activate base && \
# jupyter lab --ip=$(hostname) --no-browser
# for conda versions below 4.6 use
# workaround for non-interactive shell sessions
source $HOME/miniconda3/bin/activate base && \
jupyter lab --ip=$(hostname) --no-browser
eval "$(conda shell.bash hook)" && \
conda activate base && \
jupyter lab --ip=$(hostname) --no-browser
fi
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