amuse_tutorial_brussel2014: amuse-tutorial

File amuse-tutorial, 607 bytes (added by vanelteren, 5 years ago)

run script for amuse tutorial in brussels

Line 
1#!/bin/bash
2echo starting the AMUSE tutorial..
3SOURCE=/serveur/logiciels/amuse/amuse-tutorial
4while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
5DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
6
7export PYTHONHOME=${DIR}
8export PATH=${PYTHONHOME}/bin:${PATH}
9export PYTHONPATH=${PYTHONHOME}/customize
10export PYTHON=${PYTHONHOME}/python
11
12mkdir /tmp/matplotlib-facsc2
13
14RUNDIR=/tmp/${USER}/amuse-tutorial
15
16mkdir -p $RUNDIR
17
18cp ${PYTHONHOME}/tutorial/* ${RUNDIR}/
19
20chromium "localhost:8888"
21
22exec python ${PYTHONHOME}/bin/ipython notebook --pylab inline --notebook-dir=${RUNDIR} --profile=nbserver