mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
love them semicolons
This commit is contained in:
parent
b4c9df8ecc
commit
a6be6e9821
@ -239,13 +239,13 @@ var IPython = (function (IPython) {
|
||||
json.text = content.data;
|
||||
json.stream = content.name;
|
||||
} else if (msg_type === "display_data") {
|
||||
json = content.data
|
||||
json.output_type = msg_type
|
||||
json.metadata = content.metadata
|
||||
json = content.data;
|
||||
json.output_type = msg_type;
|
||||
json.metadata = content.metadata;
|
||||
} else if (msg_type === "pyout") {
|
||||
json = content.data
|
||||
json.output_type = msg_type
|
||||
json.metadata = content.metadata
|
||||
json = content.data;
|
||||
json.output_type = msg_type;
|
||||
json.metadata = content.metadata;
|
||||
json.prompt_number = content.execution_count;
|
||||
} else if (msg_type === "pyerr") {
|
||||
json.ename = content.ename;
|
||||
@ -506,11 +506,8 @@ var IPython = (function (IPython) {
|
||||
|
||||
for(var type_i in OutputArea.display_order){
|
||||
var type = OutputArea.display_order[type_i];
|
||||
if(json[type] != undefined ){
|
||||
var md = {};
|
||||
if (json.metadata) {
|
||||
md = json.metadata;
|
||||
}
|
||||
if(json[type] !== undefined ){
|
||||
md = json.metadata || {};
|
||||
if(type == 'javascript'){
|
||||
if (dynamic) {
|
||||
this.append_javascript(json.javascript, md, element, dynamic);
|
||||
|
Loading…
Reference in New Issue
Block a user