##// END OF EJS Templates
Work on examples and fixed a super subtle bug in Component....
Work on examples and fixed a super subtle bug in Component. * Recently, we stopped copying the config passed to a Component. This had a subtle side effect that mutable config attribute values were becoming class wide attributes. We are now doing a deep copy of all attributes as they are set on the Component instance.

File last commit:

r2288:3832d344
r2337:ab18149a
Show More
new-embed.py
17 lines | 283 B | text/x-python | PythonLexer
# This shows how to use the new top-level embed function. It is a simpler
# API that manages the creation of the embedded shell.
from IPython import embed
a = 10
b = 20
embed('First time')
c = 30
d = 40
try:
raise Exception('adsfasdf')
except:
embed('The second time')