##// END OF EJS Templates
catch any exception appending output...
MinRK -
Show More
@@ -318,7 +318,19 b' var IPython = (function (IPython) {'
318 toinsert.find('div.prompt').addClass('output_prompt').html('Out[' + n + ']:');
318 toinsert.find('div.prompt').addClass('output_prompt').html('Out[' + n + ']:');
319 }
319 }
320 this.append_mime_type(json, toinsert, dynamic);
320 this.append_mime_type(json, toinsert, dynamic);
321 try {
321 this.element.append(toinsert);
322 this.element.append(toinsert);
323 } catch(err) {
324 console.log("Error attaching output!");
325 console.log(err);
326 this.element.show();
327 toinsert.html($('<div/>')
328 .html("Javascript error adding output!<br/>" +
329 err.toString() +
330 '<br/>See your browser Javascript console for more details.')
331 .addClass('js-error')
332 );
333 }
322 // If we just output latex, typeset it.
334 // If we just output latex, typeset it.
323 if ((json.latex !== undefined) || (json.html !== undefined)) {
335 if ((json.latex !== undefined) || (json.html !== undefined)) {
324 this.typeset();
336 this.typeset();
General Comments 0
You need to be logged in to leave comments. Login now