Issue
I'm currently trying to get interactive plots working with IPython notebook. One of the issues I'm having is the fact that when executing Python code through the IPython.notebook.kernel.execute method in javascript I have no way of knowing when that piece of code has finished executing. Is there an easy way of detecting whether the kernel is busy/idle so that I can tell Javascript to idle until it's completed?
Solution
The Kernel status is probably what you are looking for:
http://ipython.org/ipython-doc/dev/development/messaging.html#kernel-status
You can find some additional inspiration in the kernel.js of the IPython notebook (just search for "busy"):
https://github.com/ipython/ipython/blob/master/IPython/frontend/html/notebook/static/js/kernel.js
Answered By - P.R.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.