##// END OF EJS Templates
Minor edits and updates.
Brian E. Granger -
Show More
@@ -3,7 +3,7 b''
3 3
4 4 Please see the documentation in the IPython.Shell module for more details.
5 5
6 The accompanying file example-embed-short.py has quick code fragments for
6 The accompanying file embed_class_short.py has quick code fragments for
7 7 embedding which you can cut and paste in your code once you understand how
8 8 things work.
9 9
@@ -133,5 +133,3 b' print(\'\\nMain program calling bar("spam")\\n\')'
133 133 bar('spam')
134 134
135 135 print('Main program finished. Bye!')
136
137 #********************** End of file <example-embed.py> ***********************
@@ -1,6 +1,6 b''
1 1 """Quick code snippets for embedding IPython into other programs.
2 2
3 See example-embed.py for full details, this file has the bare minimum code for
3 See embed_class_long.py for full details, this file has the bare minimum code for
4 4 cut and paste use once you understand how to use the system."""
5 5
6 6 #---------------------------------------------------------------------------
@@ -20,7 +20,7 b' from IPython.terminal.embed import InteractiveShellEmbed'
20 20 # Now create the IPython shell instance. Put ipshell() anywhere in your code
21 21 # where you want it to open.
22 22 ipshell = InteractiveShellEmbed(banner1=banner, exit_msg=exit_msg)
23
23
24 24 #---------------------------------------------------------------------------
25 25 # This code will load an embeddable IPython shell always with no changes for
26 26 # nested embededings.
@@ -43,5 +43,3 b' else:'
43 43 # Define a dummy ipshell() so the same code doesn't crash inside an
44 44 # interactive IPython
45 45 def ipshell(): pass
46
47 #******************* End of file <example-embed-short.py> ********************
@@ -1,5 +1,4 b''
1 # This shows how to use the new top-level embed function. It is a simpler
2 # API that manages the creation of the embedded shell.
1 """Embed IPython using the simple embed function rather than the class API."""
3 2
4 3 from IPython import embed
5 4
General Comments 0
You need to be logged in to leave comments. Login now