Atomically thin carbon nanotubes serve as transparent-test tubes for individual molecules of functionalised endohedral fullerenes. Aberration-corrected transmission electron microscopy reveals the complex dynamic behaviour of these molecules at the atomic level, and it sheds light on the mechanism of their encapsulation into nanotubes.