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