##// END OF EJS Templates
DOC: fix typo in deprecation warning (#14521)...
DOC: fix typo in deprecation warning (#14521) I'm sorry about the ridiculous level of triviality here, but just reading the message it wasn't clear at first if I need to import from `IPython` or from `IPython.display` and naturally I went with the wrong one at first. (My line was `from IPython.core.display import display`, so it wasn't obvious at first if the 'display' in the deprecation message was for the function or the module.)

File last commit:

r16113:87737521
r28863:6c00ceac 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')