Skip to content

Instantly share code, notes, and snippets.

@daf
Created October 26, 2011 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daf/1314849 to your computer and use it in GitHub Desktop.
Save daf/1314849 to your computer and use it in GitHub Desktop.
ipython embedded and greenlets?
#!/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