Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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
Something went wrong with that request. Please try again.