Created
November 28, 2012 17:15
-
-
Save munhitsu/4162619 to your computer and use it in GitHub Desktop.
ipython within lettuce context
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from: http://matelakat.blogspot.co.uk/2012/03/lettuce-and-ipython-interactive-shell.html | |
# | |
@step(u'And give me IPython') | |
def and_continue_here(step): | |
import IPython | |
import sys | |
shell = IPython.InteractiveShell() | |
ip = IPython.core.ipapi.get() | |
p = IPython.core.debugger.Pdb(ip.colors) | |
p.reset() | |
p.interaction(sys._getframe(0), None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment