[IPython-dev] ipython1 kill()

Vitaliyi imgrey@gmail....
Thu Oct 18 03:29:58 CDT 2007


Good Day

How to kill the running task on engine ? I was trying this :

"""
import ipython1.kernel.api as kernel
rc = kernel.RemoteController(('127.0.0.1',10105))
rc.getIDs() #[0]
rc.execute(0, 'import time; time.sleep(1000)')
rc.killall()
rc.queueStatusAll() # <Queue Status List>; Engine: 0; Pending:
"execute('import time; time.sleep(1000)')"
rc.killAll() # <-- Hangs
rc.queueStatusAll() #<Queue Status List>; Engine: 0; Pending:
"execute('import time; time.sleep(1000)')"; Command: 'kill()'

"""

Thanks


More information about the IPython-dev mailing list