Using Mathematica on O2

How to run an interactive Mathematica shell

Find out which version of Mathematica is currently available on the cluster using the module command: 

then load the desired version, for example:

You can now submit an interactive Mathematica job using the SLURM command srun for example, requesting 2GiB of memory:

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 is a script like

Please check our other wiki pages to learn more about the scheduler (SLURM), the O2 cluster, the available partitions, etc.