Created
October 26, 2011 00:01
-
-
Save daf/1314849 to your computer and use it in GitHub Desktop.
ipython embedded and greenlets?
This file contains 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
#!/usr/bin/env python | |
from gevent import spawn, joinall | |
import time | |
import IPython | |
def work(): | |
while True: | |
time.sleep(2) | |
print "Hello" | |
gl = spawn(work) | |
IPython.embed() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment