ipython/ipython — pull request #1410 by ellisonbg (2012-02-16 02:39:23+00:00)
Title: Add javascript library and css stylesheet loading to JS class.

I have added a lib and css keyword argument to the `Javascript` display class. The lib option allows you to specify javascript libraries to load asynchronously before the JS code is run. The css option allows you to specify css stylesheet that should be loaded. Both the lib and css arguments are sequences of URLs to load the resources from. Use like this:

```python
Javascript("""""",
lib=['http://mbostock.github.com/d3/d3.js'],
css=['http://mbostock.github.com/d3/ex/force.css']
)

Most importantly, the js code run by the object can use the loaded js library as well as the css styles.