/isambard:pythonfrom isambard
Guides Python environment setup on Isambard AI supercomputers (Arm64). Covers Miniforge/Conda, uv, pip, virtual environments, and building packages from source for HPC.
Ships in isambard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Isambard supercomputers run Linux on Arm64 (aarch64) — this shapes almost every aspect of Python environment management, since many packages lack prebuilt aarch64 wheels and must be compiled from source.
Python and packages can be managed with pip, conda, or uv. Conda via Miniforge is the recommended approach. All workflows should use virtual environments to isolate dependencies.
Use:
base environment.conda init; activate Miniforge manually.python3 -m pip rather than bare pip.uv only when you need a simpler local venv workflow.Use Miniforge, not the main Anaconda distribution (which requires a license).
cd $HOME
curl --location --remote-name \
"https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh
rm Miniforge3-$(uname)-$(uname -m).sh
$(uname) → OS name (e.g. Linux); $(uname -m) → architecture (e.g. aarch64).
Do not run conda init — it modifies shell startup scripts and can cause complications. Instead, activate manually:
source ~/miniforge3/bin/activate
Never install packages into base. Always create a named environment:
(base) $ conda create --name myenv python=3.10
(base) $ conda activate myenv
(myenv) $ conda install scipy
To create from a YAML spec file:
conda env create --file environment.yml
Useful commands: conda list (list packages), conda deactivate (exit environment).
aarch64-compatible Conda packagesSearch anaconda.org and filter Platform → linux-aarch64 to confirm a package is available for this architecture before attempting to install.
uv is a fast pip/venv-compatible tool useful for creating virtual environments and resolving dependencies. It also manages Python versions and tracks exact dependency lockfiles.
curl -LsSf https://astral.sh/uv/install.sh | sh
mkdir myproject && cd myproject
uv venv # creates .venv in current directory
source .venv/bin/activate
uv pip install numpy
A system Python is available via the modules system:
module avail # list all available modules
module load cray-python
which python3 # /opt/cray/pe/python/3.11.5/bin/python3
mkdir -p ~/.virtualenvs
python3 -m venv --upgrade-deps ~/.virtualenvs/myenv
source ~/.virtualenvs/myenv/bin/activate
python3 -m pip install scipy
python3 -m pip list
deactivate
Tip: Always use
python3 -m piprather than barepipto ensure you're targeting the correct environment.
aarch64Many packages don't ship aarch64 wheels. If a package isn't on conda or in a container, it must be built from source. The sections below cover the main friction points.
The OS default compilers are often too old for research software. Set CC/CXX explicitly:
# List available g++ versions
ls /usr/bin/g++*
# /usr/bin/g++ /usr/bin/g++-12 /usr/bin/g++-13 /usr/bin/g++-7
CC=/usr/bin/gcc-12 CXX=/usr/bin/g++-12 pip install <PACKAGE>
mpi4py)Conda's mpi4py installs its own MPI, which won't use the system high-speed interconnect (Slingshot 11). Force a source build against the Cray MPI stack instead:
module load PrgEnv-gnu
python3 -m pip install --no-cache --no-binary mpi4py mpi4py
For simple use-cases, module load cray-mpich-abi can help pip find the correct MPI library without a source build.
By default, pip builds packages in an isolated environment. On aarch64 this can block access to:
-march=armv8-a)nvcc)torch that some builds need to detectDisable build isolation when standard installation fails:
CC=/usr/bin/gcc-12 CXX=/usr/bin/g++-12 pip install --no-build-isolation <PACKAGE>
Or via exported variables:
export CC="/usr/bin/gcc-12"
export CXX="/usr/bin/g++-12"
export CFLAGS="-march=native -O3"
export CXXFLAGS="-march=native -O3"
pip install --no-build-isolation <PACKAGE>
Trade-off: Disabling isolation can cause dependency conflicts. Use when standard installation fails and ARM-specific optimisations are needed.
setup.py and pyproject.tomlCheck whether a package's build script supports aarch64 before installing:
setup.py — look for platform conditionals:
import sys, platform
if sys.platform == "linux" and platform.uname().machine == "aarch64":
extra_compile_args = ["-march=armv8-a"]
pyproject.toml — check the build backend:
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
On Isambard-AI, sys.platform returns "linux" and platform.uname().machine returns "aarch64".
aarch64 supportsetup.py: look for install_requires or requirements.txt referencespyproject.toml: check [project.dependencies], [tool.poetry.dependencies], or equivalentGitHub Actions CI is a reliable signal: if .github/workflows only builds linux_x86_64.whl, the package has no official aarch64 wheel and requires source compilation or a workaround.
Support for popular ML packages on aarch64 is documented on the Isambard ML packages applications page.
| Situation | Recommended approach |
|---|---|
| General Python environment management | Conda (Miniforge) |
| Fast pip/venv workflows | uv |
| System Python already available | module load cray-python + venv |
Package not on conda, no aarch64 wheel | Build from source; set CC/CXX; try --no-build-isolation |
| MPI (mpi4py) | module load PrgEnv-gnu + pip install --no-binary mpi4py mpi4py |
| Checking package compatibility | Search anaconda.org filtered to linux-aarch64; inspect GitHub Actions workflows |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/brics-hpc-ai-codeGuidance for writing, reviewing, and running AI-generated code responsibly on Bristol Centre for Supercomputing (BriCS) shared HPC resources: Isambard-AI and Isambard 3. Use this skill whenever generating, adapting, or debugging code intended to run on BriCS facilities, writing Slurm job scripts, managing storage, installing software, or ensuring compliance with BriCS policies.
/containersGuide for using containers on Isambard AI (BriCS) supercomputers with Podman-HPC and Apptainer (formerly Singularity). Use this skill whenever a user asks about running containers on Isambard, using podman-hpc or apptainer/singularity, pulling or building container images, running containers on compute nodes or across multiple nodes with MPI or NCCL, GPU access inside containers, squashfs image migration, the brics/nccl or brics/apptainer-multi-node modules, using NGC (Nvidia GPU Cloud) containers on Isambard, or getting full Slingshot 11 interconnect bandwidth from containerised workloads. Also trigger for questions about aarch64-compatible container images, --fakeroot builds, the /host/adapt.sh entrypoint, or any container-related workflow on an HPE Cray system.
/cudaGuide for using GPUs and CUDA on Isambard AI (BriCS) supercomputers (Isambard-AI Phase 1 and Phase 2, which have NVIDIA GH200 Grace Hopper GPUs). Use this skill whenever a user asks about CUDA on Isambard, loading the cudatoolkit or nvhpc modules, compiling CUDA kernels with nvcc, the correct -arch flag for the GH200 (sm_90), CUDA forward compatibility, using a newer CUDA version than the installed driver supports, the NVIDIA HPC SDK on Isambard, NGC container images for GPU workloads, nvidia-smi on compute nodes, or diagnosing CUDA version mismatches. Also trigger for general GPU programming setup questions on Isambard, even if the user doesn't say "CUDA" explicitly. Note: GPUs are only on Isambard-AI (Phase 1 and Phase 2) — not Isambard 3.
npx claudepluginhub isambard-sc/skills.isambard.ac.uk --plugin isambardOther plugins' skills for the same job