Permalink
Browse files

Fixing bug that caused plots to not be saved.

CodeCell.append_mime_type needed a default element.
  • Loading branch information...
1 parent cc6010e commit f5c5121b517f51e305673e00aca5f80c0e0d221c @ellisonbg ellisonbg committed Aug 15, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 IPython/frontend/html/notebook/static/js/codecell.js
View
1 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) {

0 comments on commit f5c5121

Please sign in to comment.