Use set_rendered to set the error msg of the cell.

This commit is contained in:
Jonathan Frederic 2014-02-21 10:31:29 -08:00
parent 946212d5fa
commit ef3f61f906

View File

@ -361,11 +361,11 @@ var IPython = (function (IPython) {
} catch (e) { } catch (e) {
console.log("Error running Javascript in Markdown:"); console.log("Error running Javascript in Markdown:");
console.log(e); console.log(e);
rendered.empty(); this.set_rendered(
rendered.append(
$("<div/>") $("<div/>")
.append($("<div/>").text('Error rendering Markdown!').addClass("js-error")) .append($("<div/>").text('Error rendering Markdown!').addClass("js-error"))
.append($("<div/>").text(e.toString()).addClass("js-error")) .append($("<div/>").text(e.toString()).addClass("js-error"))
.html()
); );
} }
this.element.find('div.text_cell_input').hide(); this.element.find('div.text_cell_input').hide();