def in_ipython_frontend():
try:<EOL><INDENT>ip = get_ipython()  <EOL>return '<STR_LIT>' in str(type(ip)).lower()<EOL><DEDENT>except NameError:<EOL><INDENT>pass<EOL><DEDENT>return False<EOL>
check if we're inside an an IPython zmq frontend