Engineers have developed a new soft magnetic hydrogel that can be 3D-printed into microscopic structures.