mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Use set_rendered to set the error msg of the cell.
This commit is contained in:
parent
946212d5fa
commit
ef3f61f906
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user