| 1 |
"""Embed IPython using the simple embed function rather than the class API.""" |
| 2 |
|
| 3 |
from IPython import embed |
| 4 |
|
| 5 |
a = 10 |
| 6 |
b = 20 |
| 7 |
|
| 8 |
embed(header="First time", banner1="") |
| 9 |
|
| 10 |
c = 30 |
| 11 |
d = 40 |
| 12 |
|
| 13 |
try: |
| 14 |
raise Exception("adsfasdf") |
| 15 |
except: |
| 16 |
embed(header="The second time") |