##// END OF EJS Templates
Merge pull request #9360 from takluyver/i9359...
Merge pull request #9360 from takluyver/i9359 Add and use confirm_exit flag in prompt_toolkit shell

File last commit:

r16113:87737521
r22203:bad8a12c merge
Show More
embed_function.py
16 lines | 258 B | text/x-python | PythonLexer
"""Embed IPython using the simple embed function rather than the class API."""
from IPython import embed
a = 10
b = 20
embed(header='First time', banner1='')
c = 30
d = 40
try:
raise Exception('adsfasdf')
except:
embed(header='The second time')