IPython shell
from Zope2 import configure; import os; configure(os.environ['ZOPE_CONFIG_FILE']); import Zope2; app=Zope2.app(); ns={'__name__':'blah','app':app}; import IPython; IPython.Shell.IPShell(user_ns=ns).mainloop(sys_exit=1);
DZone Snippets > morlandi > python
12551 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
from Zope2 import configure; import os; configure(os.environ['ZOPE_CONFIG_FILE']); import Zope2; app=Zope2.app(); ns={'__name__':'blah','app':app}; import IPython; IPython.Shell.IPShell(user_ns=ns).mainloop(sys_exit=1);