##// END OF EJS Templates
pydb_ipy.py extension adds %pydb magic when imported
vivainio -
Show More

The requested changes are too big and content was truncated. Show full diff

@@ -0,0 +1,22 b''
1 import pydb
2 import IPython.ipapi
3 from IPython.genutils import arg_split
4 ip = IPython.ipapi.get()
5
6 def call_pydb(self, args):
7 argl = arg_split(args)
8 print argl
9 if ip.IP.has_readline:
10 ip.IP.savehist()
11 try:
12 pydb.runl(*args)
13 finally:
14
15 if ip.IP.has_readline:
16 ip.IP.readline.read_history_file(self.shell.histfile)
17
18 ip.expose_magic("pydb",call_pydb)
19
20
21
22 No newline at end of file
1 NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
General Comments 0
You need to be logged in to leave comments. Login now