From 7d9d843dd9e67f50032f87d60aa3b01cfd1de245 2014-01-12 21:54:46 From: Paul Ivanov Date: 2014-01-12 21:54:46 Subject: [PATCH] fix png inlining --- diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index a064139..289858a 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -616,7 +616,7 @@ var IPython = (function (IPython) { OutputArea.prototype.append_png = function (png, md, element, type) { var toinsert = this.create_output_subarea(md, "output_png", type); var img = $(""); - img[0].attr('src','data:image/png;base64,'+png); + img[0].setAttribute('src','data:image/png;base64,'+png); if (md['height']) { img[0].setAttribute('height', md['height']); }