Never been to DZone Snippets before?

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

About this user

Mario Orlandi

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

IPython shell

// "%PYTHON%" -i -c ..."
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);
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS