Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restarting Remote Kernels when using IPython.parallel

How do I force the remote kernels to restart when I am using IPython.parallel?

For example in the normal IPython notebook, I can restart a kernel right from the tool bar. My question is when I have remote kernels, how do I force the same operation?

like image 878
Alex Rothberg Avatar asked Aug 27 '14 18:08

Alex Rothberg


1 Answers

Saw another post from @drevicko that might get at what you want, even if it doesn't actually answer the specific question you posted about restarting the engines. Would purging the engine have the desired effect for your case?

Client.purge_everything()
Client.purge_hub_results(jobs=[], targets=[])
Client.purge_results(jobs=[], targets=[])
Client.abort(jobs=None, targets=None, block=None)
like image 180
Roland Avatar answered Nov 06 '22 08:11

Roland