Debian Codegraph @

tools/tests/embed/embed1.py

raw
1 """This tests standard embedding, automatically detecting the module and
2 local namespaces."""
3
4 f = set([1,2,3,4,5])
5
6 def bar(foo):
7 import IPython
8 IPython.embed(banner1='check f in globals, foo in locals')
9
10 bar(f)