How to run an interactive Mathematica shell
After setting up your license file you will be able to load a Mathematica module and start an interactive job. Find out which version of Mathematica is currently available on the cluster with
then load the desired version, for example:
You can now submit an interactive Mathematica job using the SLURM command srun for example:
To run Mathematica with full graphics, please first refer to our instructions for how to use X11 applications on O2. There are preliminary steps to make sure your desktop can use X11 forwarding to display graphics from O2.
After that, you can similarly submit a graphical Mathematica job. The command "mathematica" enables full graphics:
How to run a batch Mathematica job
You can run Mathematica scripts as batch jobs using the SLURM command sbatch and a submission script, for example:
when my_mathematica_job.sh is a script like
Please check our other wiki pages to learn more about the scheduler (SLURM), the O2 cluster, the available partitions, etc.