Show More
@@ -1,138 +1,139 b'' | |||||
1 | {%- extends 'display_priority.tpl' -%} |
|
1 | {%- extends 'display_priority.tpl' -%} | |
2 |
|
2 | |||
3 |
|
3 | |||
4 |
|
4 | |||
5 | {% block codecell %} |
|
5 | {% block codecell %} | |
6 | <div class="cell border-box-sizing code_cell vbox"> |
|
6 | <div class="cell border-box-sizing code_cell vbox"> | |
7 | {{ super() }}</div> |
|
7 | {{ super() }}</div> | |
8 | {%- endblock codecell %} |
|
8 | {%- endblock codecell %} | |
9 |
|
9 | |||
10 | {% block input_group -%} |
|
10 | {% block input_group -%} | |
11 | <div class="input hbox"> |
|
11 | <div class="input hbox"> | |
12 | {{super()}} |
|
12 | {{super()}} | |
13 | </div> |
|
13 | </div> | |
14 | {% endblock input_group %} |
|
14 | {% endblock input_group %} | |
15 |
|
15 | |||
16 | {% block outputs -%} |
|
16 | {% block outputs -%} | |
17 | <div class="output vbox"> |
|
17 | <div class="output vbox"> | |
18 | {{ super() }} |
|
18 | {{ super() }} | |
19 | </div> |
|
19 | </div> | |
20 | {% endblock outputs %} |
|
20 | {% endblock outputs %} | |
21 |
|
21 | |||
22 | {% block output_group -%} |
|
22 | {% block output_group -%} | |
23 | <div class="vbox output_wrapper"> |
|
23 | <div class="vbox output_wrapper"> | |
24 | <div class="hbox output_area"> |
|
24 | <div class="hbox output_area"> | |
25 | {{ super() }} |
|
25 | {{ super() }} | |
26 | </div> |
|
26 | </div> | |
27 | </div> |
|
27 | </div> | |
28 | {% endblock output_group %} |
|
28 | {% endblock output_group %} | |
29 |
|
29 | |||
30 |
|
30 | |||
31 | {% block in_prompt -%} |
|
31 | {% block in_prompt -%} | |
32 | <div class="prompt input_prompt">In [{{cell.prompt_number}}]:</div> |
|
32 | <div class="prompt input_prompt">In [{{cell.prompt_number}}]:</div> | |
33 | {%- endblock in_prompt %} |
|
33 | {%- endblock in_prompt %} | |
34 |
|
34 | |||
35 | {% block output_prompt -%} |
|
35 | {% block output_prompt -%} | |
36 | <div class="prompt output_prompt"> |
|
36 | <div class="prompt output_prompt"> | |
37 | {%- if cell.haspyout -%} |
|
37 | {%- if cell.haspyout -%} | |
38 | Out[{{cell.prompt_number}}]: |
|
38 | Out[{{cell.prompt_number}}]: | |
39 | {%- endif -%} |
|
39 | {%- endif -%} | |
40 | </div> |
|
40 | </div> | |
41 | {% endblock output_prompt %} |
|
41 | {% endblock output_prompt %} | |
42 |
|
42 | |||
43 | {% block input %} |
|
43 | {% block input %} | |
44 | <div class="input_area box-flex1"> |
|
44 | <div class="input_area box-flex1"> | |
45 | {{cell.input | highlight }} |
|
45 | {{cell.input | highlight }} | |
46 | </div> |
|
46 | </div> | |
47 | {%- endblock input %} |
|
47 | {%- endblock input %} | |
48 |
|
48 | |||
49 |
|
49 | |||
50 | {% block markdowncell scoped %} |
|
50 | {% block markdowncell scoped %} | |
51 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
51 | <div class="text_cell_render border-box-sizing rendered_html"> | |
52 | {{ cell.source | markdown| rm_fake}} |
|
52 | {{ cell.source | markdown| rm_fake}} | |
53 | </div> |
|
53 | </div> | |
54 | {%- endblock markdowncell %} |
|
54 | {%- endblock markdowncell %} | |
55 |
|
55 | |||
56 | {% block headingcell scoped %} |
|
56 | {% block headingcell scoped %} | |
57 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
57 | <div class="text_cell_render border-box-sizing rendered_html"> | |
58 | <h{{cell.level}}> |
|
58 | <h{{cell.level}}> | |
59 | <a class="heading-anchor" name="{{cell.source}}"> |
|
59 | {% set source = cell.source | replace(' ','_') %} | |
|
60 | <a class="heading-anchor" id="{{source}}" href="#{{source}}"> | |||
60 | {{cell.source}} |
|
61 | {{cell.source}} | |
61 | </a> |
|
62 | </a> | |
62 | </h{{cell.level}}> |
|
63 | </h{{cell.level}}> | |
63 | </div> |
|
64 | </div> | |
64 | {% endblock headingcell %} |
|
65 | {% endblock headingcell %} | |
65 |
|
66 | |||
66 | {% block rawcell scoped %} |
|
67 | {% block rawcell scoped %} | |
67 | {{ cell.source }} |
|
68 | {{ cell.source }} | |
68 | {% endblock rawcell %} |
|
69 | {% endblock rawcell %} | |
69 |
|
70 | |||
70 | {% block unknowncell scoped %} |
|
71 | {% block unknowncell scoped %} | |
71 | unknown type {{cell.type}} |
|
72 | unknown type {{cell.type}} | |
72 | {% endblock unknowncell %} |
|
73 | {% endblock unknowncell %} | |
73 |
|
74 | |||
74 |
|
75 | |||
75 | {% block pyout -%} |
|
76 | {% block pyout -%} | |
76 | <div class="box-flex1 output_subarea output_pyout"> |
|
77 | <div class="box-flex1 output_subarea output_pyout"> | |
77 | {% block data_priority scoped %}{{ super()}}{% endblock %} |
|
78 | {% block data_priority scoped %}{{ super()}}{% endblock %} | |
78 | </div> |
|
79 | </div> | |
79 | {%- endblock pyout %} |
|
80 | {%- endblock pyout %} | |
80 |
|
81 | |||
81 | {% block stream_stdout -%} |
|
82 | {% block stream_stdout -%} | |
82 | <div class="box-flex1 output_subarea output_stream output_stdout"> |
|
83 | <div class="box-flex1 output_subarea output_stream output_stdout"> | |
83 | <pre>{{output.text |ansi2html}}</pre> |
|
84 | <pre>{{output.text |ansi2html}}</pre> | |
84 | </div> |
|
85 | </div> | |
85 | {%- endblock stream_stdout %} |
|
86 | {%- endblock stream_stdout %} | |
86 |
|
87 | |||
87 | {% block stream_stderr -%} |
|
88 | {% block stream_stderr -%} | |
88 | <div class="box-flex1 output_subarea output_stream output_stderr"> |
|
89 | <div class="box-flex1 output_subarea output_stream output_stderr"> | |
89 | <pre>{{output.text |ansi2html}}</pre> |
|
90 | <pre>{{output.text |ansi2html}}</pre> | |
90 | </div> |
|
91 | </div> | |
91 | {%- endblock stream_stderr %} |
|
92 | {%- endblock stream_stderr %} | |
92 |
|
93 | |||
93 | {% block data_svg -%} |
|
94 | {% block data_svg -%} | |
94 | {{output.svg}} |
|
95 | {{output.svg}} | |
95 | {%- endblock data_svg %} |
|
96 | {%- endblock data_svg %} | |
96 |
|
97 | |||
97 |
|
98 | |||
98 | {% block data_html -%} |
|
99 | {% block data_html -%} | |
99 | <div class="output_html rendered_html"> |
|
100 | <div class="output_html rendered_html"> | |
100 | {{output.html}} |
|
101 | {{output.html}} | |
101 | </div> |
|
102 | </div> | |
102 | {%- endblock data_html %} |
|
103 | {%- endblock data_html %} | |
103 |
|
104 | |||
104 | {% block data_png %} |
|
105 | {% block data_png %} | |
105 | <img src="data:image/png;base64,{{output.png}}"></img> |
|
106 | <img src="data:image/png;base64,{{output.png}}"></img> | |
106 | {%- endblock data_png %} |
|
107 | {%- endblock data_png %} | |
107 |
|
108 | |||
108 |
|
109 | |||
109 | {% block data_jpg %} |
|
110 | {% block data_jpg %} | |
110 | <img src="data:image/jpeg;base64,{{output.jpeg}}"></img> |
|
111 | <img src="data:image/jpeg;base64,{{output.jpeg}}"></img> | |
111 | {%- endblock data_jpg %} |
|
112 | {%- endblock data_jpg %} | |
112 |
|
113 | |||
113 |
|
114 | |||
114 | {% block data_latex %} |
|
115 | {% block data_latex %} | |
115 | {{output.latex}} |
|
116 | {{output.latex}} | |
116 | {%- endblock data_latex %} |
|
117 | {%- endblock data_latex %} | |
117 |
|
118 | |||
118 | {% block pyerr -%} |
|
119 | {% block pyerr -%} | |
119 | <div class="box-flex1 output_subarea output_pyerr"> |
|
120 | <div class="box-flex1 output_subarea output_pyerr"> | |
120 | <pre>{{super()}}</pre> |
|
121 | <pre>{{super()}}</pre> | |
121 | </div> |
|
122 | </div> | |
122 | {%- endblock pyerr %} |
|
123 | {%- endblock pyerr %} | |
123 |
|
124 | |||
124 | {%- block traceback_line %} |
|
125 | {%- block traceback_line %} | |
125 | {{line| ansi2html}} |
|
126 | {{line| ansi2html}} | |
126 | {%- endblock traceback_line %} |
|
127 | {%- endblock traceback_line %} | |
127 |
|
128 | |||
128 |
|
129 | |||
129 | {%- block data_text %} |
|
130 | {%- block data_text %} | |
130 | <pre>{{output.text | ansi2html}}</pre> |
|
131 | <pre>{{output.text | ansi2html}}</pre> | |
131 | {%- endblock -%} |
|
132 | {%- endblock -%} | |
132 |
|
133 | |||
133 |
|
134 | |||
134 | {%- block display_data scoped -%} |
|
135 | {%- block display_data scoped -%} | |
135 | <div class="box-flex1 output_subarea output_display_data"> |
|
136 | <div class="box-flex1 output_subarea output_display_data"> | |
136 | {{super()}} |
|
137 | {{super()}} | |
137 | </div> |
|
138 | </div> | |
138 | {%- endblock display_data -%} |
|
139 | {%- endblock display_data -%} |
General Comments 0
You need to be logged in to leave comments.
Login now