Show More
@@ -1,189 +1,191 b'' | |||
|
1 | 1 | {%- extends 'display_priority.tpl' -%} |
|
2 | 2 | |
|
3 | 3 | |
|
4 | 4 | {% block codecell %} |
|
5 | <div class="cell border-box-sizing code_cell"> | |
|
5 | <div class="cell border-box-sizing code_cell rendered unselected"> | |
|
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 output_group %} |
|
17 | 17 | <div class="output_wrapper"> |
|
18 | 18 | <div class="output"> |
|
19 | 19 | {{ super() }} |
|
20 | 20 | </div> |
|
21 | 21 | </div> |
|
22 | 22 | {% endblock output_group %} |
|
23 | 23 | |
|
24 | 24 | {% block in_prompt -%} |
|
25 | 25 | <div class="prompt input_prompt"> |
|
26 | 26 | In [{{ cell.prompt_number }}]: |
|
27 | 27 | </div> |
|
28 | 28 | {%- endblock in_prompt %} |
|
29 | 29 | |
|
30 | 30 | {% block empty_in_prompt -%} |
|
31 | 31 | <div class="prompt input_prompt"> |
|
32 | 32 | </div> |
|
33 | 33 | {%- endblock empty_in_prompt %} |
|
34 | 34 | |
|
35 | 35 | {# |
|
36 | 36 | output_prompt doesn't do anything in HTML, |
|
37 | 37 | because there is a prompt div in each output area (see output block) |
|
38 | 38 | #} |
|
39 | 39 | {% block output_prompt %} |
|
40 | 40 | {% endblock output_prompt %} |
|
41 | 41 | |
|
42 | 42 | {% block input %} |
|
43 |
<div class="in |
|
|
43 | <div class="inner_cell"> | |
|
44 | <div class="input_area"> | |
|
44 | 45 | {{ cell.input | highlight2html(language=resources.get('language'), metadata=cell.metadata) }} |
|
45 | 46 | </div> |
|
47 | </div> | |
|
46 | 48 | {%- endblock input %} |
|
47 | 49 | |
|
48 | 50 | {% block output %} |
|
49 | 51 | <div class="output_area"> |
|
50 | 52 | {%- if output.output_type == 'pyout' -%} |
|
51 | 53 | <div class="prompt output_prompt"> |
|
52 | 54 | Out[{{ cell.prompt_number }}]: |
|
53 | 55 | {%- else -%} |
|
54 | 56 | <div class="prompt"> |
|
55 | 57 | {%- endif -%} |
|
56 | 58 | </div> |
|
57 | 59 | {{ super() }} |
|
58 | 60 | </div> |
|
59 | 61 | {% endblock output %} |
|
60 | 62 | |
|
61 | 63 | {% block markdowncell scoped %} |
|
62 | <div class="cell border-box-sizing text_cell"> | |
|
64 | <div class="cell border-box-sizing text_cell rendered unselected"> | |
|
63 | 65 | <div class="input"> |
|
64 | 66 | {{ self.empty_in_prompt() }} |
|
65 | 67 | <div class="inner_cell"> |
|
66 | 68 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
67 | 69 | {{ cell.source | markdown2html | strip_files_prefix }} |
|
68 | 70 | </div> |
|
69 | 71 | </div> |
|
70 | 72 | </div> |
|
71 | 73 | </div> |
|
72 | 74 | {%- endblock markdowncell %} |
|
73 | 75 | |
|
74 | 76 | {% block headingcell scoped %} |
|
75 | <div class="cell border-box-sizing text_cell"> | |
|
77 | <div class="cell border-box-sizing text_cell rendered unselected"> | |
|
76 | 78 | <div class="input"> |
|
77 | 79 | {{ self.empty_in_prompt() }} |
|
78 | 80 | <div class="inner_cell"> |
|
79 | 81 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
80 | 82 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }} |
|
81 | 83 | </div> |
|
82 | 84 | </div> |
|
83 | 85 | </div> |
|
84 | 86 | </div> |
|
85 | 87 | {% endblock headingcell %} |
|
86 | 88 | |
|
87 | 89 | {% block unknowncell scoped %} |
|
88 | 90 | unknown type {{ cell.type }} |
|
89 | 91 | {% endblock unknowncell %} |
|
90 | 92 | |
|
91 | 93 | {% block pyout -%} |
|
92 |
<div class=" |
|
|
94 | <div class="output_subarea output_text"> | |
|
93 | 95 | {% block data_priority scoped %} |
|
94 | 96 | {{ super() }} |
|
95 | 97 | {% endblock %} |
|
96 | 98 | </div> |
|
97 | 99 | {%- endblock pyout %} |
|
98 | 100 | |
|
99 | 101 | {% block stream_stdout -%} |
|
100 | 102 | <div class="box-flex1 output_subarea output_stream output_stdout"> |
|
101 | 103 | <pre> |
|
102 | 104 | {{ output.text | ansi2html }} |
|
103 | 105 | </pre> |
|
104 | 106 | </div> |
|
105 | 107 | {%- endblock stream_stdout %} |
|
106 | 108 | |
|
107 | 109 | {% block stream_stderr -%} |
|
108 | 110 | <div class="box-flex1 output_subarea output_stream output_stderr"> |
|
109 | 111 | <pre> |
|
110 | 112 | {{ output.text | ansi2html }} |
|
111 | 113 | </pre> |
|
112 | 114 | </div> |
|
113 | 115 | {%- endblock stream_stderr %} |
|
114 | 116 | |
|
115 | 117 | {% block data_svg -%} |
|
116 | 118 | {%- if output.svg_filename %} |
|
117 | 119 | <img src="{{output.svg_filename | posix_path}}" |
|
118 | 120 | {%- else %} |
|
119 | 121 | {{ output.svg }} |
|
120 | 122 | {%- endif %} |
|
121 | 123 | {%- endblock data_svg %} |
|
122 | 124 | |
|
123 | 125 | {% block data_html -%} |
|
124 | 126 | <div class="output_html rendered_html"> |
|
125 | 127 | {{ output.html }} |
|
126 | 128 | </div> |
|
127 | 129 | {%- endblock data_html %} |
|
128 | 130 | |
|
129 | 131 | {% block data_png %} |
|
130 | 132 | {%- if output.png_filename %} |
|
131 | 133 | <img src="{{output.png_filename | posix_path}}" |
|
132 | 134 | {%- else %} |
|
133 | 135 | <img src="data:image/png;base64,{{ output.png }}" |
|
134 | 136 | {%- endif %} |
|
135 | 137 | {%- if 'metadata' in output and 'width' in output.metadata.get('png', {}) %} |
|
136 | 138 | width={{output.metadata['png']['width']}} |
|
137 | 139 | {%- endif %} |
|
138 | 140 | {%- if 'metadata' in output and 'height' in output.metadata.get('png', {}) %} |
|
139 | 141 | height={{output.metadata['png']['height']}} |
|
140 | 142 | {%- endif %} |
|
141 | 143 | > |
|
142 | 144 | {%- endblock data_png %} |
|
143 | 145 | |
|
144 | 146 | {% block data_jpg %} |
|
145 | 147 | {%- if output.jpeg_filename %} |
|
146 | 148 | <img src="{{output.jpeg_filename | posix_path}}" |
|
147 | 149 | {%- else %} |
|
148 | 150 | <img src="data:image/jpeg;base64,{{ output.jpeg }}" |
|
149 | 151 | {%- endif %} |
|
150 | 152 | {%- if 'metadata' in output and 'width' in output.metadata.get('jpeg', {}) %} |
|
151 | 153 | width={{output.metadata['jpeg']['width']}} |
|
152 | 154 | {%- endif %} |
|
153 | 155 | {%- if 'metadata' in output and 'height' in output.metadata.get('jpeg', {}) %} |
|
154 | 156 | height={{output.metadata['jpeg']['height']}} |
|
155 | 157 | {%- endif %} |
|
156 | 158 | > |
|
157 | 159 | {%- endblock data_jpg %} |
|
158 | 160 | |
|
159 | 161 | {% block data_latex %} |
|
160 | 162 | {{ output.latex }} |
|
161 | 163 | {%- endblock data_latex %} |
|
162 | 164 | |
|
163 | 165 | {% block pyerr -%} |
|
164 | 166 | <div class="box-flex1 output_subarea output_pyerr"> |
|
165 | 167 | <pre>{{ super() }}</pre> |
|
166 | 168 | </div> |
|
167 | 169 | {%- endblock pyerr %} |
|
168 | 170 | |
|
169 | 171 | {%- block traceback_line %} |
|
170 | 172 | {{ line | ansi2html }} |
|
171 | 173 | {%- endblock traceback_line %} |
|
172 | 174 | |
|
173 | 175 | {%- block data_text %} |
|
174 | 176 | <pre> |
|
175 | 177 | {{ output.text | ansi2html }} |
|
176 | 178 | </pre> |
|
177 | 179 | {%- endblock -%} |
|
178 | 180 | |
|
179 | 181 | {%- block data_javascript %} |
|
180 | 182 | <script type="text/javascript"> |
|
181 | 183 | {{ output.javascript }} |
|
182 | 184 | </script> |
|
183 | 185 | {%- endblock -%} |
|
184 | 186 | |
|
185 | 187 | {%- block display_data scoped -%} |
|
186 | 188 | <div class="box-flex1 output_subarea output_display_data"> |
|
187 | 189 | {{ super() }} |
|
188 | 190 | </div> |
|
189 | 191 | {%- endblock display_data -%} |
@@ -1,69 +1,79 b'' | |||
|
1 | 1 | {%- extends 'basic.tpl' -%} |
|
2 | 2 | {% from 'mathjax.tpl' import mathjax %} |
|
3 | 3 | |
|
4 | 4 | |
|
5 | 5 | {%- block header -%} |
|
6 | 6 | <!DOCTYPE html> |
|
7 | 7 | <html> |
|
8 | 8 | <head> |
|
9 | 9 | |
|
10 | 10 | <meta charset="utf-8" /> |
|
11 | 11 | <title>{{resources['metadata']['name']}}</title> |
|
12 | 12 | |
|
13 | 13 | {% for css in resources.inlining.css -%} |
|
14 | 14 | <style type="text/css"> |
|
15 | 15 | {{ css }} |
|
16 | 16 | </style> |
|
17 | 17 | {% endfor %} |
|
18 | 18 | |
|
19 | 19 | <style type="text/css"> |
|
20 | 20 | /* Overrides of notebook CSS for static HTML export */ |
|
21 | 21 | body { |
|
22 | 22 | overflow: visible; |
|
23 | 23 | padding: 8px; |
|
24 | 24 | } |
|
25 | 25 | .input_area { |
|
26 | 26 | padding: 0.2em; |
|
27 | 27 | } |
|
28 | 28 | |
|
29 | 29 | pre { |
|
30 | 30 | padding: 0.2em; |
|
31 | 31 | border: none; |
|
32 | 32 | margin: 0px; |
|
33 | 33 | font-size: 13px; |
|
34 | 34 | } |
|
35 | 35 | |
|
36 | 36 | @media print { |
|
37 | 37 | div.cell { |
|
38 | 38 | display: block; |
|
39 | 39 | page-break-inside: avoid; |
|
40 | 40 | } |
|
41 | 41 | div.output_wrapper { |
|
42 | 42 | display: block; |
|
43 | 43 | page-break-inside: avoid; |
|
44 | 44 | } |
|
45 | 45 | div.output { |
|
46 | 46 | display: block; |
|
47 | 47 | page-break-inside: avoid; |
|
48 | 48 | } |
|
49 | 49 | } |
|
50 | 50 | </style> |
|
51 | 51 | |
|
52 | 52 | <!-- Custom stylesheet, it must be in the same directory as the html file --> |
|
53 | 53 | <link rel="stylesheet" href="custom.css"> |
|
54 | 54 | |
|
55 | 55 | <!-- Loading mathjax macro --> |
|
56 | 56 | {{ mathjax() }} |
|
57 | 57 | |
|
58 | 58 | </head> |
|
59 | 59 | {%- endblock header -%} |
|
60 | 60 | |
|
61 | 61 | {% block body %} |
|
62 | 62 | <body> |
|
63 | <div style="display: block;" id="site" class="border-box-sizing"> | |
|
64 | <div id="ipython-main-app" class="border-box-sizing"> | |
|
65 | <div id="notebook_panel" class="border-box-sizing" style="-webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none;"> | |
|
66 | <div tabindex="-1" id="notebook" class="border-box-sizing" style="overflow: visible; border-top: none;"> | |
|
67 | <div class="container" id="notebook-container"> | |
|
63 | 68 | {{ super() }} |
|
69 | </div> | |
|
70 | </div> | |
|
71 | </div> | |
|
72 | </div> | |
|
73 | </div> | |
|
64 | 74 | </body> |
|
65 | 75 | {%- endblock body %} |
|
66 | 76 | |
|
67 | 77 | {% block footer %} |
|
68 | 78 | </html> |
|
69 | 79 | {% endblock footer %} |
General Comments 0
You need to be logged in to leave comments.
Login now