Jython/Batch
From ScientificComputing
You can submit a Jython job (using the jython script test.py) with the following command:
sbatch [Slurm options] --wrap="jython test.py"
Here you need to replace [Slurm options] with Slurm parameters for the resource requirements of the job. Please find a documentation about the parameters of sbatch on the wiki page about the batch system.