##// END OF EJS Templates
fix stream saving
Paul Ivanov -
Show More
@@ -333,7 +333,6 var IPython = (function (IPython) {
333 333 var mime_md = metadata[mime];
334 334 // mime-specific higher priority
335 335 if (mime_md && mime_md[key] !== undefined) {
336 console.log("got" + key + " "+ mime_md[key]);
337 336 return mime_md[key];
338 337 }
339 338 // fallback on global
@@ -741,11 +740,12 var IPython = (function (IPython) {
741 740 var len = outputs.length;
742 741 var data;
743 742 for (var i=0; i<len; i++) {
744 var msg_type = outputs[i].output_type;
743 data = outputs[i];
744 var msg_type = data.output_type;
745 745 if (msg_type === "display_data" || msg_type === "pyout") {
746 746 // convert short keys to mime keys
747 data = this.rename_keys(outputs[i], OutputArea.mime_map_r);
748 data.metadata = this.rename_keys(outputs[i].metadata, OutputArea.mime_map_r);
747 data = this.rename_keys(data, OutputArea.mime_map_r);
748 data.metadata = this.rename_keys(data.metadata, OutputArea.mime_map_r);
749 749 }
750 750
751 751 // append with dynamic=false.
@@ -759,12 +759,12 var IPython = (function (IPython) {
759 759 var len = this.outputs.length;
760 760 var data;
761 761 for (var i=0; i<len; i++) {
762 var msg_type = this.outputs[i].output_type;
763 console.log("msg type is ", msg_type)
762 data = this.outputs[i];
763 var msg_type = data.output_type;
764 764 if (msg_type === "display_data" || msg_type === "pyout") {
765 765 // convert mime keys to short keys
766 data = this.rename_keys(this.outputs[i], OutputArea.mime_map);
767 data.metadata = this.rename_keys(this.outputs[i], OutputArea.mime_map);
766 data = this.rename_keys(data, OutputArea.mime_map);
767 data.metadata = this.rename_keys(data, OutputArea.mime_map);
768 768 }
769 769 outputs[i] = data;
770 770 }
General Comments 0
You need to be logged in to leave comments. Login now