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