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) {
console.log("Error running Javascript in Markdown:");
console.log(e);
rendered.empty();
rendered.append(
this.set_rendered(
$("<div/>")
.append($("<div/>").text('Error rendering Markdown!').addClass("js-error"))
.append($("<div/>").text(e.toString()).addClass("js-error"))
.html()
);
}
this.element.find('div.text_cell_input').hide();