##// END OF EJS Templates
ileo: call outerUpdate to update leo outline in pre_prompt_hook
Ville M. Vainio -
Show More
@@ -34,6 +34,7 b' def init_ipython(ipy):'
34 expose_ileo_push(push_ipython_script, 1000)
34 expose_ileo_push(push_ipython_script, 1000)
35 expose_ileo_push(push_plain_python, 100)
35 expose_ileo_push(push_plain_python, 100)
36 expose_ileo_push(push_ev_node, 100)
36 expose_ileo_push(push_ev_node, 100)
37 ip.set_hook('pre_prompt_hook', ileo_pre_prompt_hook)
37 global wb
38 global wb
38 wb = LeoWorkbook()
39 wb = LeoWorkbook()
39 ip.user_ns['wb'] = wb
40 ip.user_ns['wb'] = wb
@@ -606,6 +607,12 b' def mb_completer(self,event):'
606 cmds.sort()
607 cmds.sort()
607 return cmds
608 return cmds
608
609
610 def ileo_pre_prompt_hook(self):
611 c.outerUpdate()
612 raise TryNext
613
614
615
609 def show_welcome():
616 def show_welcome():
610 print "------------------"
617 print "------------------"
611 print "Welcome to Leo-enabled IPython session!"
618 print "Welcome to Leo-enabled IPython session!"
General Comments 0
You need to be logged in to leave comments. Login now