diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index 6b2c9523f..1ffc2928f 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -205,13 +205,15 @@ var IPython = (function (IPython) { CodeCell.prototype.append_pyerr = function (json) { var tb = json.traceback; - var s = ''; - var len = tb.length; - for (var i=0; i").addClass("output_area output_jpeg"); + toinsert.append($("").attr('src','data:image/jpeg;base64,'+jpeg)); + element.append(toinsert); + return element; + }; + + CodeCell.prototype.append_latex = function (latex, element) { // This method cannot do the typesetting because the latex first has to // be on the page. diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index 27e821d89..f415dde45 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -544,6 +544,9 @@ var IPython = (function (IPython) { if (data['image/png'] !== undefined) { json.png = data['image/png']; }; + if (data['image/jpeg'] !== undefined) { + json.jpeg = data['image/jpeg']; + }; if (data['text/latex'] !== undefined) { json.latex = data['text/latex']; };