diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index 3f4baf124..caa49ecb6 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -318,7 +318,19 @@ var IPython = (function (IPython) { toinsert.find('div.prompt').addClass('output_prompt').html('Out[' + n + ']:'); } this.append_mime_type(json, toinsert, dynamic); - this.element.append(toinsert); + try { + this.element.append(toinsert); + } catch(err) { + console.log("Error attaching output!"); + console.log(err); + this.element.show(); + toinsert.html($('
') + .html("Javascript error adding output!