##// END OF EJS Templates
Change to encodestring to b64encode to avoid newlines in the data URI...
Change to encodestring to b64encode to avoid newlines in the data URI The point of this is to improve compatibility with older browsers. also, encodestring is depricated in python 3.

File last commit:

r9190:20a102a5
r12839:7adb103e
Show More
embed1.py
10 lines | 221 B | text/x-python | PythonLexer
"""This tests standard embedding, automatically detecting the module and
local namespaces."""
f = set([1,2,3,4,5])
def bar(foo):
import IPython
IPython.embed(banner1='check f in globals, foo in locals')
bar(f)