@ipym.cell_magic<EOL><INDENT>def OPTMODEL(self, line, cell):<DEDENT>
res = self.mva.submit("<STR_LIT>" + cell + "<STR_LIT>")<EOL>dis = self._which_display(res['<STR_LIT>'], res['<STR_LIT>'])<EOL>return dis<EOL>
%%OPTMODEL - send the code in the cell to a SAS Server
        for processing by PROC OPTMODEL

This cell magic will execute the contents of the cell in a
PROC OPTMODEL session and return any generated output. The leading
PROC OPTMODEL and trailing QUIT; are submitted automatically.

Example:
proc optmodel;
   /* declare variables */
   var choco >= 0, toffee >= 0;

   /* maximize objective function (profit) */
   maximize profit = 0.25*choco + 0.75*toffee;

   /* subject to constraints */
   con process1:    15*choco +40*toffee <= 27000;
   con process2:           56.25*toffee <= 27000;
   con process3: 18.75*choco            <= 27000;
   con process4:    12*choco +50*toffee <= 27000;
   /* solve LP using primal simplex solver */
   solve with lp / solver = primal_spx;
   /* display solution */
   print choco toffee;
quit;