Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions gadi_jupyter
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,16 @@ set -eu
WORKDIR="$WORKDIR"
mkdir -p "\$WORKDIR"

# Check if a hh5 member
if [ ! -d /g/data/hh5 ]; then
echo "ERROR: \$USER is not a member of hh5. Join at https://my.nci.org.au/mancini/project/hh5/join" >&2
# Check if an xp65 member
if [ ! -d /g/data/xp65 ]; then
echo "ERROR: \$USER is not a member of xp65. Join at https://my.nci.org.au/mancini/project/xp65/join" >&2
echo "x x x x ERROR"
exit
fi

# Check if an ik11 member
if [ ! -d /g/data/ik11 ]; then
echo "ERROR: \$USER is not a member of ik11. Join at https://my.nci.org.au/mancini/project/ik11/join" >&2
echo "x x x x ERROR"
exit
fi
Expand All @@ -200,8 +207,8 @@ cat > "\$WORKDIR/runjp.sh" <<EOQ

module purge

eval "\\\$(/g/data/hh5/public/apps/miniconda3/bin/conda shell.bash hook)"
conda activate "${CONDA_ENV}"
module use /g/data/xp65/public/modules
module load conda/analysis3

set -eu

Expand All @@ -228,8 +235,8 @@ export DASK_TEMPORARY_DIRECTORY="\\\$TMPDIR"
$STRACE jupyter lab --NotebookApp.token="\\\$TOKEN" --no-browser --ip="\\\$HOSTNAME" --port "\\\$PORT" --port-retries=0
EOQ

# Required for conda
storage="gdata/hh5"
# Required for conda + nci_scripts
storage="gdata/xp65+gdata/ik11"

if [ -n "$STORAGE" ]; then
storage="$STORAGE+\$storage"
Expand Down Expand Up @@ -334,7 +341,7 @@ fi
set -e
echo

$SSH "$LOGINNODE" /g/data/hh5/public/apps/nci_scripts/qmonitor $jobid
$SSH "$LOGINNODE" /g/data/ik11/nci_scripts/qmonitor $jobid

# Move the cursor past the progress bars
echo
Expand Down