Brain activity can be measured using magnetic fields located at some distance from the brain, a technique called magneto-encephalography (MEG). The origin of such magnetic fields are the ionic currents involved in neuronal activity. While these processes are well known at the microscopic scale, it is less clear how large populations of neurons generate magnetic fields.