Surface must be ("del"eted, or) finished before sending it to ipython

Deleting the "del srf" in the "inline=True" case broke output to file.