D3 IPython Widget Example
A simple example of two-way communication between IPython notebook and javascript, using a D3 widget.
View this notebook on nbviewer, but be aware that it won't work without being connected to an IPython kernel!
It's better to download the notebook itself and open it with IPython notebook.