AMPL magics for IPython