##// END OF EJS Templates
ipy_leo: hijact Tk on startup
Ville M. Vainio -
Show More
@@ -10,6 +10,7 b' import re'
10 import UserDict
10 import UserDict
11 from IPython.ipapi import TryNext
11 from IPython.ipapi import TryNext
12 import IPython.macro
12 import IPython.macro
13 import IPython.Shell
13
14
14 def init_ipython(ipy):
15 def init_ipython(ipy):
15 """ This will be run by _ip.load('ipy_leo')
16 """ This will be run by _ip.load('ipy_leo')
@@ -19,6 +20,7 b' def init_ipython(ipy):'
19 """
20 """
20 global ip
21 global ip
21 ip = ipy
22 ip = ipy
23 IPython.Shell.hijack_tk()
22 ip.set_hook('complete_command', mb_completer, str_key = '%mb')
24 ip.set_hook('complete_command', mb_completer, str_key = '%mb')
23 ip.expose_magic('mb',mb_f)
25 ip.expose_magic('mb',mb_f)
24 ip.expose_magic('lee',lee_f)
26 ip.expose_magic('lee',lee_f)
General Comments 0
You need to be logged in to leave comments. Login now