Hi Developers,<div><br></div><div>While fixing the code for MathJax rendering that I broke earlier this week, I came across the need to address a specific element in the DOM:</div><div><br></div><div><a href="http://docs.mathjax.org/en/latest/typeset.html">http://docs.mathjax.org/en/latest/typeset.html</a></div>
<div><br></div><div>I know there has been some work attaching unique ids to cells in the code in the past, but there didn&#39;t seem to be any obvious functionality currently implemented in Cells for this.  You&#39;ll notice that the pull request I just updated here: <a href="https://github.com/ipython/ipython/pull/2517">https://github.com/ipython/ipython/pull/2517</a> adds the following code to textcell.js:</div>
<div><br></div><div><table class="diff-table" style="margin:0px;padding:0px;border:0px;border-collapse:collapse;border-spacing:0px;font:inherit;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:1.4;width:918px;color:rgb(51,51,51);text-align:start">
<tbody style="margin:0px;padding:0px;border:0px"><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P0" style="margin:0px;padding:0px;border:0px"><td id="L2L38" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);text-decoration:underline;background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
..</td><td id="L2R38" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
...</td><td class="gc diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(153,153,153);background-color:rgb(255,255,204);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
@@ -39,9 +39,11 @@ var IPython = (function (IPython) {</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P1" style="margin:0px;padding:0px;border:0px"><td id="L2L39" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
39</td><td id="L2R39" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
39</td><td class=" diff-line" style="margin:0px;padding:0px;border:0px;width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
             extraKeys: {&quot;Tab&quot;: &quot;indentMore&quot;,&quot;Shift-Tab&quot; : &quot;indentLess&quot;},</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P2" style="margin:0px;padding:0px;border:0px">
<td id="L2L40" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
40</td><td id="L2R40" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
40</td><td class=" diff-line" style="margin:0px;padding:0px;border:0px;width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
             onKeyEvent: $.proxy(this.handle_codemirror_keyevent,this)</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P3" style="margin:0px;padding:0px;border:0px"><td id="L2L41" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
41</td><td id="L2R41" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
41</td><td class=" diff-line" style="margin:0px;padding:0px;border:0px;width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
         });</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P4" style="margin:0px;padding:0px;border:0px"><td id="L2L41" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
 </td><td id="L2R42" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
42</td><td class="gi diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);background-color:rgb(221,255,221);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
+        this.cell_id = IPython.utils.uuid();</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P5" style="margin:0px;padding:0px;border:0px"><td id="L2L42" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
42</td><td id="L2R43" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
43</td><td class=" diff-line" style="margin:0px;padding:0px;border:0px;width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
         // The tabindex=-1 makes this div focusable.</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P6" style="margin:0px;padding:0px;border:0px"><td id="L2L42" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
 </td><td id="L2R44" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
44</td><td class="gi diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);background-color:rgb(221,255,221);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
+        // id is a unique cell_id necessary for updating MathJax intelligently</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P7" style="margin:0px;padding:0px;border:0px"><td id="L2L43" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
43</td><td id="L2R45" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
45</td><td class=" diff-line" style="margin:0px;padding:0px;border:0px;width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
         var render_area = $(&#39;&lt;div/&gt;&#39;).addClass(&#39;text_cell_render border-box-sizing&#39;).</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P8" style="margin:0px;padding:0px;border:0px">
<td id="L2L44" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
44</td><td id="L2R45" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
 </td><td class="gd diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);background-color:rgb(255,221,221);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
-            addClass(&#39;rendered_html&#39;).attr(&#39;tabindex&#39;,&#39;-1&#39;)<span class="x" style="margin:0px;padding:0px;border:0px;background-color:rgb(255,170,170)"></span>;</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P9" style="margin:0px;padding:0px;border:0px">
<td id="L2L44" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
 </td><td id="L2R46" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
46</td><td class="gi diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);background-color:rgb(221,255,221);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
+            addClass(&#39;rendered_html&#39;).attr(&#39;tabindex&#39;,&#39;-1&#39;)<span class="x" style="margin:0px;padding:0px;border:0px;background-color:rgb(170,255,170)">.attr(&#39;id&#39;,this.cell_id)</span>;</pre>
</td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P10" style="margin:0px;padding:0px;border:0px"><td id="L2L45" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
45</td><td id="L2R47" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
47</td><td class=" diff-line" style="margin:0px;padding:0px;border:0px;width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
         cell.append(input_area).append(render_area);</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P11" style="margin:0px;padding:0px;border:0px"><td id="L2L46" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
46</td><td id="L2R48" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
48</td><td class=" diff-line" style="margin:0px;padding:0px;border:0px;width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
         this.element = cell;</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P12" style="margin:0px;padding:0px;border:0px"><td id="L2L47" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
47</td><td id="L2R49" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
49</td><td class=" diff-line" style="margin:0px;padding:0px;border:0px;width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
     };</pre></td></tr></tbody></table></div><div><br></div><div>What I&#39;m doing here is first calling into IPython.utils.uuid() to generate a cell_id (The one from the Cell prototype appears to be broken/unused?), then adding that as an id to the </div>
<div>rendered html div.</div><div><br></div><div>Then later, I can grab this id when I need to update the math:</div><div><br></div><div><table class="diff-table" style="margin:0px;padding:0px;border:0px;border-collapse:collapse;border-spacing:0px;font:inherit;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;line-height:1.4;width:918px;color:rgb(51,51,51);text-align:start">
<tbody style="margin:0px;padding:0px;border:0px"><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P17" style="margin:0px;padding:0px;border:0px"><td id="L2L79" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
<br class="Apple-interchange-newline"> </td><td id="L2R82" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
82</td><td class="gi diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);background-color:rgb(221,255,221);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
+    TextCell.prototype.typeset = function () {</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P18" style="margin:0px;padding:0px;border:0px"><td id="L2L79" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
 </td><td id="L2R83" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
83</td><td class="gi diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);background-color:rgb(221,255,221);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
+        if (window.MathJax){</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P19" style="margin:0px;padding:0px;border:0px"><td id="L2L79" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
 </td><td id="L2R84" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
84</td><td class="gi diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);background-color:rgb(221,255,221);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
+            var cell_math = document.getElementById(this.cell_id);</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P20" style="margin:0px;padding:0px;border:0px"><td id="L2L79" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
 </td><td id="L2R85" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
85</td><td class="gi diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);background-color:rgb(221,255,221);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
+            MathJax.Hub.Queue([&quot;Typeset&quot;,MathJax.Hub,cell_math]);</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P21" style="margin:0px;padding:0px;border:0px"><td id="L2L79" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
 </td><td id="L2R86" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
86</td><td class="gi diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);background-color:rgb(221,255,221);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
+        }</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P22" style="margin:0px;padding:0px;border:0px"><td id="L2L79" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
 </td><td id="L2R87" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
87</td><td class="gi diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);background-color:rgb(221,255,221);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
+    };</pre></td></tr><tr id="ipython-frontend-html-notebook-static-js-textcell-js-P23" style="margin:0px;padding:0px;border:0px"><td id="L2L79" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
 </td><td id="L2R88" class="line_numbers linkable-line-number" style="margin:0px;padding:0px 6px;border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(221,221,221);background-color:rgb(236,236,236);color:rgb(170,170,170);text-align:right">
88</td><td class="gi diff-line" style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);background-color:rgb(255,255,204);width:850px"><b class="add-bubble mini-icon mini-icon-add-comment" style="padding:0px;border:0px;font-weight:normal;font-family:&#39;Octicons Regular&#39;;display:inline-block;line-height:1;font-size:16px;width:25px;height:16px;color:rgb(65,131,196)"></b><pre class="line" style="margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 10px;border:0px;font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace">
+</pre></td></tr></tbody></table><br></div><div>This really speeds up MathJax rendering considerably, so I think it&#39;s worth doing, but I feel like I&#39;m really nosing into code I don&#39;t understand well, so it would be good to hear feedback if there are opinions on this.</div>
<div><br></div><div>A</div>