Handle code magics per line