From f5c5121b517f51e305673e00aca5f80c0e0d221c 2011-08-15 04:29:07 From: Brian E. Granger Date: 2011-08-15 04:29:07 Subject: [PATCH] Fixing bug that caused plots to not be saved. CodeCell.append_mime_type needed a default element. --- diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index e58eacc..98b9763 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -227,6 +227,7 @@ var IPython = (function (IPython) { CodeCell.prototype.append_mime_type = function (json, element) { + element = element || this.element.find("div.output"); if (json.html !== undefined) { this.append_html(json.html, element); } else if (json.latex !== undefined) {