Show More
@@ -239,13 +239,13 b' var IPython = (function (IPython) {' | |||||
239 | json.text = content.data; |
|
239 | json.text = content.data; | |
240 | json.stream = content.name; |
|
240 | json.stream = content.name; | |
241 | } else if (msg_type === "display_data") { |
|
241 | } else if (msg_type === "display_data") { | |
242 | json = content.data |
|
242 | json = content.data; | |
243 | json.output_type = msg_type |
|
243 | json.output_type = msg_type; | |
244 | json.metadata = content.metadata |
|
244 | json.metadata = content.metadata; | |
245 | } else if (msg_type === "pyout") { |
|
245 | } else if (msg_type === "pyout") { | |
246 | json = content.data |
|
246 | json = content.data; | |
247 | json.output_type = msg_type |
|
247 | json.output_type = msg_type; | |
248 | json.metadata = content.metadata |
|
248 | json.metadata = content.metadata; | |
249 | json.prompt_number = content.execution_count; |
|
249 | json.prompt_number = content.execution_count; | |
250 | } else if (msg_type === "pyerr") { |
|
250 | } else if (msg_type === "pyerr") { | |
251 | json.ename = content.ename; |
|
251 | json.ename = content.ename; | |
@@ -506,11 +506,8 b' var IPython = (function (IPython) {' | |||||
506 |
|
506 | |||
507 | for(var type_i in OutputArea.display_order){ |
|
507 | for(var type_i in OutputArea.display_order){ | |
508 | var type = OutputArea.display_order[type_i]; |
|
508 | var type = OutputArea.display_order[type_i]; | |
509 | if(json[type] != undefined ){ |
|
509 | if(json[type] !== undefined ){ | |
510 |
|
|
510 | md = json.metadata || {}; | |
511 | if (json.metadata) { |
|
|||
512 | md = json.metadata; |
|
|||
513 | } |
|
|||
514 | if(type == 'javascript'){ |
|
511 | if(type == 'javascript'){ | |
515 | if (dynamic) { |
|
512 | if (dynamic) { | |
516 | this.append_javascript(json.javascript, md, element, dynamic); |
|
513 | this.append_javascript(json.javascript, md, element, dynamic); |
General Comments 0
You need to be logged in to leave comments.
Login now