##// END OF EJS Templates
fix some stream/pyout/pyerr
Matthias BUSSONNIER -
Show More
@@ -72,32 +72,36 b' unknown type {{cell.type}}'
72 </div>
72 </div>
73 {%- endblock pyout %}
73 {%- endblock pyout %}
74
74
75 {% block stream -%}
75 {% block stream_stdout -%}
76 <div class="output_subarea output_stream output_stdout">
76 <div class="output_subarea output_stream output_stdout">
77 <pre>{{output.text |ansi2html}}</pre>
77 <pre>{{output.text |ansi2html}}</pre>
78 </div>
78 </div>
79 {%- endblock stream %}
79 {%- endblock stream_stdout %}
80
81 {% block stream_stderr -%}
82 <div class="output_subarea output_stream output_stderr">
83 <pre>{{output.text |ansi2html}}</pre>
84 </div>
85 {%- endblock stream_stderr %}
80
86
81 {% block data_svg -%}
87 {% block data_svg -%}
82 {{output.svg}}
88 {{output.svg}}
83 </div>
84 {%- endblock data_svg %}
89 {%- endblock data_svg %}
85
90
86
91
87 {% block data_html %}
92 {% block data_html -%}
93 <div class="output_html rendered_html">
88 {{output.html}}
94 {{output.html}}
89 </div>
95 </div>
90 {%- endblock data_html %}
96 {%- endblock data_html %}
91
97
92 {% block data_png %}
98 {% block data_png %}
93 <img src="data:image/png;base64,{{output.png}}"></img>
99 <img src="data:image/png;base64,{{output.png}}"></img>
94 </div>
95 {%- endblock data_png %}
100 {%- endblock data_png %}
96
101
97
102
98 {% block data_jpg %}
103 {% block data_jpg %}
99 <img src="data:image/jpeg;base64,{{output.jpeg}}"></img>
104 <img src="data:image/jpeg;base64,{{output.jpeg}}"></img>
100 </div>
101 {%- endblock data_jpg %}
105 {%- endblock data_jpg %}
102
106
103
107
@@ -119,3 +123,10 b' unknown type {{cell.type}}'
119 {%- block data_text %}
123 {%- block data_text %}
120 <pre>{{output.text | ansi2html}}</pre>
124 <pre>{{output.text | ansi2html}}</pre>
121 {%- endblock -%}
125 {%- endblock -%}
126
127
128 {%- block display_data scoped -%}
129 <div class="output_subarea output_display_data">
130 {{super()}}
131 </div>
132 {%- endblock display_data -%}
@@ -41,7 +41,15 b' consider calling super even if block is leave block, we might insert more block '
41 {%- if output.output_type in ['pyout'] -%}
41 {%- if output.output_type in ['pyout'] -%}
42 {%- block pyout scoped -%}{%- endblock pyout -%}
42 {%- block pyout scoped -%}{%- endblock pyout -%}
43 {%- elif output.output_type in ['stream'] -%}
43 {%- elif output.output_type in ['stream'] -%}
44 {%- block stream scoped -%}{%- endblock stream -%}
44 {%- block stream scoped -%}
45 {%- if output.stream in ['stdout'] -%}
46 {%- block stream_stdout scoped -%}
47 {%- endblock stream_stdout -%}
48 {%- elif output.stream in ['stderr'] -%}
49 {%- block stream_stderr scoped -%}
50 {%- endblock stream_stderr -%}
51 {%- endif -%}
52 {%- endblock stream -%}
45 {%- elif output.output_type in ['display_data'] -%}
53 {%- elif output.output_type in ['display_data'] -%}
46 {%- block display_data scoped -%}
54 {%- block display_data scoped -%}
47 {%- block data_priority scoped -%}
55 {%- block data_priority scoped -%}
General Comments 0
You need to be logged in to leave comments. Login now