def get_ipython_cmd(as_string=False):
 ipython_cmd = [sys.executable, '-m', 'IPython']
 if as_string:
  ipython_cmd = ' '.join(ipython_cmd)
 return ipython_cmd

def get_ipython_cmd ( as_string = False ) : ipython_cmd = [ sys . executable , '-m' , 'IPython' ] if as_string : ipython_cmd = ' ' . join ( ipython_cmd ) return ipython_cmd
return appropriate ipython command line name .