☰
Debian Codegraph
@
9.11.0-3
9.11.0-2
/
/
tools
/
tests
/
embed
/
embed1.py
☽
☼
tools/tests/embed/embed1.py
code
plain
raw
BSD-3-clause
2005,2008-2015 The IPython Development Team; 2001-2007, Fernando Perez <
[email protected]
>; 2001, Janko Hauser <
[email protected]
>; 2001, Nathaniel Gray <
[email protected]
>; 2002-2005, Alexander Schmolck; 2004, W.J. van der Laan <
[email protected]
>; 2001, Python Software Foundation, www.python.org; 2009, Gael Varoquaux
(
[email protected]
)
; 2005, Jörgen Stenarson <
[email protected]
>
debian/copyright
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)