import IPython ipshell = IPython.Shell.IPShell(argv=['-prompt_in1','APLpy <\#>: ','-autocall','2','-colors', \ 'LightBG','-logfile','ipython.log'],user_ns=globals()) ipshell.mainloop(0)