def bpython(recipe, app=None, quiet=False, writable=True): from scif.main import ScifRecipe import bpython client = ScifRecipe(recipe, quiet=quiet, writable=writable) client.speak() if app is not None: client.activate(app) bpython.embed(locals_={'client': client})
def python(recipe, app=None, quiet=False, writable=True): from scif.main import ScifRecipe import code client = ScifRecipe(recipe, quiet=quiet, writable=writable) client.speak() if app is not None: client.activate(app) code.interact(local={"client": client})
def ipython(recipe, app=None, quiet=False, writable=True): '''embed the client with loaded recipe into an ipython session ''' from scif.main import ScifRecipe from IPython import embed client = ScifRecipe(recipe, quiet=quiet, writable=writable) client.speak() if app is not None: client.activate(app) embed()