diff options
author | root <root@ghunt-desktop.(none)> | 2010-10-16 19:15:23 (GMT) |
---|---|---|
committer | root <root@ghunt-desktop.(none)> | 2010-10-16 19:15:23 (GMT) |
commit | 7e0dfb3e1df6ffa0194048d93ac4f55df00107a0 (patch) | |
tree | f7292713810a9f2434482fb41c00aecc48877041 /ipy_sh.py | |
parent | 8d792268cf8c799185da47995aa7c5374ebb9514 (diff) |
upgraded to IPython 0.11 apha
Diffstat (limited to 'ipy_sh.py')
-rw-r--r-- | ipy_sh.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -2,8 +2,9 @@ #ipy_sh is module which encapsulates IPython.IPShellEmbed to work with gtk gui import IPython import inspect +from IPython.frontend.terminal.embed import InteractiveShellEmbed -class PSE(IPython.Shell.IPShellEmbed): +class PSE(InteractiveShellEmbed): def __init__(self): frame = inspect.currentframe() try: @@ -12,9 +13,9 @@ class PSE(IPython.Shell.IPShellEmbed): del frame print('filename:%s line:%s function:%s index into code %s'%(info[0],info[1],info[2],info[4],)) for line in info[3]: - print line + print line, args = ['=pi1','in <\\#>:','-po','Out<\\#>:'] - IPython.Shell.IPShellEmbed.__init__(self,args,banner='Now in shell at your breakpoint\nTry debug\n') + InteractiveShellEmbed.__init__(self,args,banner='Now in shell at your breakpoint\nTry debug\n') if __name__ == '__main__': test = PSE() |