#!/bin/bash

echo starting the tutorial..

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

. ${DIR}/common

RUNDIR=/tmp/${USER}/amuse-tutorial

mkdir -p $RUNDIR

cp ${PYTHONHOME}/tutorial/* ${RUNDIR}/

exec python ${PYTHONHOME}/bin/jupyter-notebook --notebook-dir=${RUNDIR}


