##// END OF EJS Templates
include docstring in detail_level=1 if no source is found...
include docstring in detail_level=1 if no source is found We currently display source for ?? and docstring for ?, which means less info is displayed if no source is found (e.g. compiled functions). This displays docstring for ?? as a fallback when no Source is found. This is a regression in 5.x

File last commit:

r16113:87737521
r23021:ebedbe27
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')