Merge pull request #2792 from takluyver/mathjax-callback-err

Attempt to fix mysterious mathjax callback error
Min RK 9 years ago committed by GitHub
commit f8a6e1c5b7

@ -940,12 +940,17 @@ define([
if(!window.MathJax){
return;
}
return $el.map(function(){
$el.map(function(){
// MathJax takes a DOM node: $.map makes `this` the context
return MathJax.Hub.Queue(
["Typeset", MathJax.Hub, this],
["resetEquationNumbers",MathJax.InputJax.TeX]
);
MathJax.Hub.Queue(["Typeset", MathJax.Hub, this]);
try {
MathJax.Hub.Queue(
["Require", MathJax.Ajax, "[MathJax]/extensions/TeX/AMSmath.js"],
function() { MathJax.InputJax.TeX.resetEquationNumbers(); }
);
} catch (e) {
console.error("Error queueing resetEquationNumbers:", e);
}
});
};

@ -3001,7 +3001,7 @@ define([
this.fromJSON(data);
} catch (e) {
failed = e;
console.log("Notebook failed to load from JSON:", e);
console.error("Notebook failed to load from JSON:", e);
}
if (failed || data.message) {
// *either* fromJSON failed or validation failed

Loading…
Cancel
Save