sagemath/sagecell — pull request #354 by ihanson (2012-08-02 23:43:21+00:00)
Title: Using a JQuery selector as inputLocation/outputLocation

This pull request will allow the embedder to use any object that can be used as a JQuery selector (a string, a DOM node, or another JQuery collection) as the `inputLocation` and `outputLocation` arguments to `makeSagecell`. The old behavior allowed only a string representing a CSS selector for a single location.

If the `inputLocation` selects multiple nodes, and `outputLocation` is not given, a separate Sage Cell will be created in each of the selected locations, as requested by @kcrisman [in this question](http://ask.sagemath.org/question/1564/sage-cell-server-do-i-really-need-so-many "Sage cell server - do I really need so many makeSagecell invocations?").