Example Scripts
Minimal sbatch Script
#! /usr/bin/env bash
#
#SBATCH --job-name=minimal-example
#SBATCH --cpus-per-task=1
#SBATCH --mem=1G
#SBATCH --time=0-00:00:20
echo "Hello, World!"
Python Scripts
Use the uv package manager to run Python scripts in a Slurm job. Or otherwise use a Python virtual environment.
#! /usr/bin/env bash
#
#SBATCH --job-name=minimal-example
#SBATCH --cpus-per-task=1
#SBATCH --mem=1G
#SBATCH --time=0-00:00:20
uv run example.py