mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
handle empty metadata in pyout messages more gracefully.
This commit is contained in:
parent
6fd10471e1
commit
f0cb45536c
@ -255,6 +255,9 @@ var IPython = (function (IPython) {
|
|||||||
|
|
||||||
|
|
||||||
OutputArea.prototype.convert_mime_types = function (json, data) {
|
OutputArea.prototype.convert_mime_types = function (json, data) {
|
||||||
|
if (data === undefined) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
if (data['text/plain'] !== undefined) {
|
if (data['text/plain'] !== undefined) {
|
||||||
json.text = data['text/plain'];
|
json.text = data['text/plain'];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user