Interactive shell with X11 forwarding for SLURM.
Run sinteractive with the usual sbatch arguments, but DO NOT give a program to run. When your job starts, you'll find yourself using an interactive shell which has proper X11 forwarding enabled.
Scripts were written by Pär Andersson (National Supercomputer Centre, Sweden) and published in the SLURM FAQ.