##// 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
embed2.py
5 lines | 220 B | text/x-python | PythonLexer
"""This tests passing a dict for the user_ns at shell instantiation."""
from IPython import embed
user_ns = dict(cookie='monster')
embed(user_ns=user_ns, banner1="check 'cookie' present, locals and globals equivalent")