ipython/ipython — pull request #1386 by ellisonbg (2012-02-07 17:25:17+00:00)
Title: Jsd3

Adding handling of dynamic javascript output to the notebook. I take the JS string and simply call eval on it. The enclosing scope has the element so the JS code can insert things into the DOM at the right point on the page. The code is not eval'd when the notebook is loaded or cells are pasted - only when they are executed.

Here is an example:

```python
from IPython.core.display import Javascript
Javascript("element.html('hi')")
```

Currently, the full jquery/jqueryui libs are available for use. The JS classes that we use in the client are also available, so users can muck with the notebook itself. This includes running code in the kernel. BUT, the kernel will need to be refactored to pull that off. Once that is done, we should be ready for manipulate/interact style things.

Do we want to ship d3 and load it in the notebook for people to use? It really needs to be loaded in advance by us.

I can't wait to see how people use this!