Minimal code to show how to make Python callbacks from Jupyter notebooks. If this is your thing, also check out the awesome mpld3.
The notebook renders better on the Jupyter page than on the github page.
Jupyter notebooks can also interface with Ruby, R, Haskell, and any other kernel a person wants to write. try it.