Home

James Nightingale

Hi, I’m James Nightingale. I’m an observational cosmologist and Ernest Rutherford Fellow at Newcastle University, and I spend my days weighing galaxies with light that gravity has bent.

A galaxy’s gravity can bend light from a more distant galaxy into arcs or a ring. This is strong gravitational lensing. I use these distorted images to measure the matter we cannot see, including dark matter and black holes.

Strong-lensing schematic: light from a distant source galaxy on the right bends around a foreground lens galaxy and reaches the James Webb Space Telescope on the left along different paths.

Weigh a galaxy yourself

I believe natural language is becoming the primary interface for doing science. I’m building tools that let you explore this science in ordinary language.

With the PyAutoLens Assistant, you can analyse a real James Webb Space Telescope image and measure the mass of a galaxy—asking questions and learning as you go.

Try it with the COSMOS-Web Ring, shown below: light from a distant galaxy bent into a ring by a galaxy in front of it. Open Claude Code, Codex or another AI coding agent and paste this prompt; the agent installs the assistant for you.

The COSMOS-Web Ring: a near-complete ring of lensed light around a massive galaxy, imaged by JWST.
The COSMOS-Web Ring (COSJ100024+015334), imaged by JWST. Credit: COSMOS-Web Lens Survey (COWLS) / Nightingale et al. (2025); discovered by Mercier et al. (2024).
Your starting prompt
I want to use the PyAutoLens Assistant: https://github.com/PyAutoLabs/autolens_assistant First clone that repository, cd into it and follow its AGENTS.md.

I'd like to understand how gravitational lensing works using the JWST image of the COSMOS-Web Ring that ships with the assistant. Show me the picture, explain what we are looking at, and walk me through fitting a lens model so we can measure the mass inside the ring and see how well the model reproduces the observations. Pitch it at my level: ask me what my background is first. Explain what we are doing as we go, and let me ask questions or change the analysis along the way.
Prefer a notebook?

Explore the same analysis in Google Colab to see the code alongside the explanation.

The tools behind it

Explore my work

  • Natural Language & AI: the vision, how I build software this way, and my workshop.
  • Cosmology: lensing to study the most massive black holes, the smallest dark matter clumps and the most distant Universe.
  • Euclid: strong lensing and CCD radiation-damage correction for Euclid.
  • Cancer: my statistics methods (PyAutoFit) applied to cancer treatment.

CV · Publications · Talks · GitHub · ORCID