def init_ipython_session(argv=[], auto_symbols=False, auto_int_to_Integer=False):
 import IPython
 if (V(IPython.__version__) >= '0.11'):
  if (V(IPython.__version__) >= '1.0'):
   from IPython.terminal import ipapp
  else:
   from IPython.frontend.terminal import ipapp
  app = ipapp.TerminalIPythonApp()
  app.display_banner = False
  app.initialize(argv)
  if auto_symbols:
   readline = import_module('readline')
   if readline:
    enable_automatic_symbols(app)
  if auto_int_to_Integer:
   enable_automatic_int_sympification(app)
  return app.shell
 else:
  from IPython.Shell import make_IPython
  return make_IPython(argv)

def init_ipython_session ( argv = [ ] , auto_symbols = False , auto_int_to_Integer = False ) : import IPython if ( V ( IPython . __version__ ) >= '0.11' ) : if ( V ( IPython . __version__ ) >= '1.0' ) : from IPython . terminal import ipapp else : from IPython . frontend . terminal import ipapp app = ipapp . TerminalIPythonApp ( ) app . display_banner = False app . initialize ( argv ) if auto_symbols : readline = import_module ( 'readline' ) if readline : enable_automatic_symbols ( app ) if auto_int_to_Integer : enable_automatic_int_sympification ( app ) return app . shell else : from IPython . Shell import make_IPython return make_IPython ( argv )
construct new ipython session .