Magnetic dipole in python

view in nbviewer, download notebook