Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ipy_sh.py
diff options
context:
space:
mode:
authorroot <root@ghunt-desktop.(none)>2010-10-16 19:15:23 (GMT)
committer root <root@ghunt-desktop.(none)>2010-10-16 19:15:23 (GMT)
commit7e0dfb3e1df6ffa0194048d93ac4f55df00107a0 (patch)
treef7292713810a9f2434482fb41c00aecc48877041 /ipy_sh.py
parent8d792268cf8c799185da47995aa7c5374ebb9514 (diff)
upgraded to IPython 0.11 apha
Diffstat (limited to 'ipy_sh.py')
-rw-r--r--ipy_sh.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ipy_sh.py b/ipy_sh.py
index 7b3b755..4df8756 100644
--- a/ipy_sh.py
+++ b/ipy_sh.py
@@ -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()