Show More
@@ -40,8 +40,8 b' def init_ipython(ipy):' | |||||
40 | wb = LeoWorkbook() |
|
40 | wb = LeoWorkbook() | |
41 | ip.user_ns['wb'] = wb |
|
41 | ip.user_ns['wb'] = wb | |
42 |
|
42 | |||
43 | show_welcome() |
|
|||
44 |
|
43 | |||
|
44 | first_launch = True | |||
45 |
|
45 | |||
46 | def update_commander(new_leox): |
|
46 | def update_commander(new_leox): | |
47 | """ Set the Leo commander to use |
|
47 | """ Set the Leo commander to use | |
@@ -51,7 +51,12 b' def update_commander(new_leox):' | |||||
51 | ipython-launch to tell ILeo what document the commands apply to. |
|
51 | ipython-launch to tell ILeo what document the commands apply to. | |
52 |
|
52 | |||
53 | """ |
|
53 | """ | |
54 |
|
54 | |||
|
55 | global first_launch | |||
|
56 | if first_launch: | |||
|
57 | show_welcome() | |||
|
58 | first_launch = False | |||
|
59 | ||||
55 | global c,g |
|
60 | global c,g | |
56 | c,g = new_leox.c, new_leox.g |
|
61 | c,g = new_leox.c, new_leox.g | |
57 | print "Set Leo Commander:",c.frame.getTitle() |
|
62 | print "Set Leo Commander:",c.frame.getTitle() | |
@@ -569,8 +574,6 b' def lee_f(self,s):' | |||||
569 | finally: |
|
574 | finally: | |
570 | c.redraw() |
|
575 | c.redraw() | |
571 |
|
576 | |||
572 |
|
||||
573 |
|
||||
574 | def leoref_f(self,s): |
|
577 | def leoref_f(self,s): | |
575 | """ Quick reference for ILeo """ |
|
578 | """ Quick reference for ILeo """ | |
576 | import textwrap |
|
579 | import textwrap | |
@@ -649,5 +652,9 b' def lleo_f(selg, args):' | |||||
649 | import shlex, sys |
|
652 | import shlex, sys | |
650 | argv = ['leo'] + shlex.split(args) |
|
653 | argv = ['leo'] + shlex.split(args) | |
651 | sys.argv = argv |
|
654 | sys.argv = argv | |
|
655 | # if this var exists and is true, leo will "launch" (connect) | |||
|
656 | # ipython immediately when it's started | |||
|
657 | global _request_immediate_connect | |||
|
658 | _request_immediate_connect = True | |||
652 | import leo.core.runLeo |
|
659 | import leo.core.runLeo | |
653 | leo.core.runLeo.run() |
|
660 | leo.core.runLeo.run() |
General Comments 0
You need to be logged in to leave comments.
Login now