
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.
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.
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.
Explore the same analysis in Google Colab to see the code alongside the explanation.
The tools behind it
- PyAutoLens: the open-source lens-modelling software I lead.
- PyAutoLens Assistant: natural-language lens analysis.
- HowToLens: learn the science from first principles (try it in Colab).
- COWLS: the COSMOS-Web Lens Survey I lead, where this ring comes from.
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