diff --git a/template/script.sh.erb b/template/script.sh.erb old mode 100755 new mode 100644 index 718951c8076fdf1f2b30da164f99f6b5d8a87672..54c185de20c40284afdb4f7c58609f1435863df8 --- a/template/script.sh.erb +++ b/template/script.sh.erb @@ -1,29 +1,13 @@ -#!/usr/bin/env bash - -# Benchmark info -echo "TIMING - Starting main script at: $(date)" +#!/bin/bash -l # Set working directory to home directory cd "${HOME}" - +module reset # # Start Jupyter Notebook Server # - -<%- unless context.modules.blank? -%> -# Purge the module environment to avoid conflicts -module purge - -# Load the require modules -module load <%= context.modules %> - -# List loaded modules -module list -<%- end -%> - -# Benchmark info -echo "TIMING - Starting jupyter at: $(date)" - +module load Anaconda3 +<%= context.custom_environment %> +unset XDG_RUNTIME_DIR # Launch the Jupyter Notebook Server -set -x jupyter notebook --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>