diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index 8d14a75..5ed8152 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -255,6 +255,9 @@ var IPython = (function (IPython) { OutputArea.prototype.convert_mime_types = function (json, data) { + if (data === undefined) { + return json; + } if (data['text/plain'] !== undefined) { json.text = data['text/plain']; }