Show More
@@ -1,187 +1,179 | |||
|
1 | 1 | {%- extends 'display_priority.tpl' -%} |
|
2 | 2 | |
|
3 | 3 | |
|
4 | 4 | {% block codecell %} |
|
5 | 5 | <div class="cell border-box-sizing code_cell"> |
|
6 | 6 | {{ super() }} |
|
7 | 7 | </div> |
|
8 | 8 | {%- endblock codecell %} |
|
9 | 9 | |
|
10 | 10 | {% block input_group -%} |
|
11 | 11 | <div class="input"> |
|
12 | 12 | {{ super() }} |
|
13 | 13 | </div> |
|
14 | 14 | {% endblock input_group %} |
|
15 | 15 | |
|
16 | 16 | {% block m_input_group -%} |
|
17 | 17 | <div class="input"> |
|
18 | 18 | {{ super() }} |
|
19 | 19 | </div> |
|
20 | 20 | {% endblock m_input_group %} |
|
21 | 21 | |
|
22 | 22 | {% block h_input_group -%} |
|
23 | 23 | <div class="input"> |
|
24 | 24 | {{ super() }} |
|
25 | 25 | </div> |
|
26 | 26 | {% endblock h_input_group %} |
|
27 | 27 | |
|
28 | 28 | {% block r_input_group -%} |
|
29 | <div class="input"> | |
|
30 | 29 | {{ super() }} |
|
31 | </div> | |
|
32 | 30 | {% endblock r_input_group %} |
|
33 | 31 | |
|
34 | 32 | {% block u_input_group -%} |
|
35 | <div class="input"> | |
|
36 | 33 | {{ super() }} |
|
37 | </div> | |
|
38 | 34 | {% endblock u_input_group %} |
|
39 | 35 | |
|
40 | 36 | {% block output_group %} |
|
41 | 37 | <div class="output_wrapper"> |
|
42 | 38 | <div class="output"> |
|
43 | 39 | {{ super() }} |
|
44 | 40 | </div> |
|
45 | 41 | </div> |
|
46 | 42 | {% endblock output_group %} |
|
47 | 43 | |
|
48 | 44 | {% block in_prompt -%} |
|
49 | 45 | <div class="prompt input_prompt"> |
|
50 | 46 | In [{{ cell.prompt_number }}]: |
|
51 | 47 | </div> |
|
52 | 48 | {%- endblock in_prompt %} |
|
53 | 49 | |
|
54 | 50 | {% block e_in_prompt -%} |
|
55 | 51 | <div class="prompt input_prompt"> |
|
56 | 52 | </div> |
|
57 | 53 | {%- endblock e_in_prompt %} |
|
58 | 54 | |
|
59 | 55 | {# |
|
60 | 56 | output_prompt doesn't do anything in HTML, |
|
61 | 57 | because there is a prompt div in each output area (see output block) |
|
62 | 58 | #} |
|
63 | 59 | {% block output_prompt %} |
|
64 | 60 | {% endblock output_prompt %} |
|
65 | 61 | |
|
66 | 62 | {% block input %} |
|
67 | 63 | <div class="input_area box-flex1"> |
|
68 | 64 | {{ cell.input | highlight2html(metadata=cell.metadata) }} |
|
69 | 65 | </div> |
|
70 | 66 | {%- endblock input %} |
|
71 | 67 | |
|
72 | 68 | {% block output %} |
|
73 | 69 | <div class="output_area"> |
|
74 | 70 | {%- if output.output_type == 'pyout' -%} |
|
75 | 71 | <div class="prompt output_prompt"> |
|
76 | 72 | Out[{{ cell.prompt_number }}]: |
|
77 | 73 | {%- else -%} |
|
78 | 74 | <div class="prompt"> |
|
79 | 75 | {%- endif -%} |
|
80 | 76 | </div> |
|
81 | 77 | {{ super() }} |
|
82 | 78 | </div> |
|
83 | 79 | {% endblock output %} |
|
84 | 80 | |
|
85 | 81 | {% block m_input %} |
|
86 | 82 | <div class="inner_cell"> |
|
87 | 83 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
88 | 84 | {{ cell.source | markdown2html | strip_files_prefix }} |
|
89 | 85 | </div> |
|
90 | 86 | </div> |
|
91 | 87 | {%- endblock m_input %} |
|
92 | 88 | |
|
93 | 89 | {% block h_input %} |
|
94 | 90 | <div class="inner_cell"> |
|
95 | 91 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
96 | 92 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }} |
|
97 | 93 | </div> |
|
98 | 94 | </div> |
|
99 | 95 | {% endblock h_input %} |
|
100 | 96 | |
|
101 | 97 | {% block r_input %} |
|
102 | <div class="inner_cell"> | |
|
103 | 98 | {% if cell.metadata.get('raw_mimetype', resources.get('raw_mimetype', '')).lower() in resources.get('raw_mimetypes', ['']) %} |
|
104 | 99 | {{ cell.source }} |
|
105 | 100 | {% endif %} |
|
106 | </div> | |
|
107 | 101 | {% endblock r_input %} |
|
108 | 102 | |
|
109 | 103 | {% block u_input %} |
|
110 | <div class="inner_cell"> | |
|
111 | 104 | unknown type {{ cell.type }} |
|
112 | </div> | |
|
113 | 105 | {% endblock u_input %} |
|
114 | 106 | |
|
115 | 107 | {% block pyout -%} |
|
116 | 108 | <div class="box-flex1 output_subarea output_pyout"> |
|
117 | 109 | {% block data_priority scoped %} |
|
118 | 110 | {{ super() }} |
|
119 | 111 | {% endblock %} |
|
120 | 112 | </div> |
|
121 | 113 | {%- endblock pyout %} |
|
122 | 114 | |
|
123 | 115 | {% block stream_stdout -%} |
|
124 | 116 | <div class="box-flex1 output_subarea output_stream output_stdout"> |
|
125 | 117 | <pre> |
|
126 | 118 | {{ output.text | ansi2html }} |
|
127 | 119 | </pre> |
|
128 | 120 | </div> |
|
129 | 121 | {%- endblock stream_stdout %} |
|
130 | 122 | |
|
131 | 123 | {% block stream_stderr -%} |
|
132 | 124 | <div class="box-flex1 output_subarea output_stream output_stderr"> |
|
133 | 125 | <pre> |
|
134 | 126 | {{ output.text | ansi2html }} |
|
135 | 127 | </pre> |
|
136 | 128 | </div> |
|
137 | 129 | {%- endblock stream_stderr %} |
|
138 | 130 | |
|
139 | 131 | {% block data_svg -%} |
|
140 | 132 | {{ output.svg }} |
|
141 | 133 | {%- endblock data_svg %} |
|
142 | 134 | |
|
143 | 135 | {% block data_html -%} |
|
144 | 136 | <div class="output_html rendered_html"> |
|
145 | 137 | {{ output.html }} |
|
146 | 138 | </div> |
|
147 | 139 | {%- endblock data_html %} |
|
148 | 140 | |
|
149 | 141 | {% block data_png %} |
|
150 | 142 | <img src="data:image/png;base64,{{ output.png }}"> |
|
151 | 143 | {%- endblock data_png %} |
|
152 | 144 | |
|
153 | 145 | {% block data_jpg %} |
|
154 | 146 | <img src="data:image/jpeg;base64,{{ output.jpeg }}"> |
|
155 | 147 | {%- endblock data_jpg %} |
|
156 | 148 | |
|
157 | 149 | {% block data_latex %} |
|
158 | 150 | {{ output.latex }} |
|
159 | 151 | {%- endblock data_latex %} |
|
160 | 152 | |
|
161 | 153 | {% block pyerr -%} |
|
162 | 154 | <div class="box-flex1 output_subarea output_pyerr"> |
|
163 | 155 | <pre>{{ super() }}</pre> |
|
164 | 156 | </div> |
|
165 | 157 | {%- endblock pyerr %} |
|
166 | 158 | |
|
167 | 159 | {%- block traceback_line %} |
|
168 | 160 | {{ line | ansi2html }} |
|
169 | 161 | {%- endblock traceback_line %} |
|
170 | 162 | |
|
171 | 163 | {%- block data_text %} |
|
172 | 164 | <pre> |
|
173 | 165 | {{ output.text | ansi2html }} |
|
174 | 166 | </pre> |
|
175 | 167 | {%- endblock -%} |
|
176 | 168 | |
|
177 | 169 | {%- block data_javascript %} |
|
178 | 170 | <script type="text/javascript"> |
|
179 | 171 | {{ output.javascript }} |
|
180 | 172 | </script> |
|
181 | 173 | {%- endblock -%} |
|
182 | 174 | |
|
183 | 175 | {%- block display_data scoped -%} |
|
184 | 176 | <div class="box-flex1 output_subarea output_display_data"> |
|
185 | 177 | {{ super() }} |
|
186 | 178 | </div> |
|
187 | 179 | {%- endblock display_data -%} |
General Comments 0
You need to be logged in to leave comments.
Login now