mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +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) {
|
} 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();
|
||||||
|
Loading…
Reference in New Issue
Block a user