Some info about Comm: http://nbviewer.ipython.org/gist/minrk/6547109 https://github.com/ipython/ipython/wiki/IPEP-21%3A-Widget-Messages
if above won't work here's the old implementation: http://jakevdp.github.io/blog/2013/06/01/ipython-notebook-javascript-python-communication/
also this might be helpful: https://github.com/ellisonbg/talk-pydata-nyc2013/
To start notebook please use: ipython notebook --profile-dir='../profile'