<s> """<STR_LIT>""" <EOL> def IPShell ( argv = None , user_ns = None , banner = None ) : <EOL> if argv is None : <EOL> argv = [ ] <EOL> try : <EOL> from IPython . terminal . embed import InteractiveShellEmbed <EOL> from IPython . config . loader import Config <EOL> cfg = Config ( ) <EOL> cfg . InteractiveShellEmbed . autocall = <NUM_LIT:2> <EOL> shell = InteractiveShellEmbed ( config = cfg , user_ns = user_ns , <EOL> banner2 = banner ) <EOL> shell ( local_ns = user_ns ) <EOL> except ImportError : <EOL> from IPython import Shell <EOL> Shell . IPShell ( argv = argv , user_ns = user_ns ) . mainloop ( banner = banner ) </s>
