If interactive, use IPython if available