Show More
@@ -184,6 +184,10 b' div.prompt {' | |||||
184 | font-family: monospace; |
|
184 | font-family: monospace; | |
185 | } |
|
185 | } | |
186 |
|
186 | |||
|
187 | div.input { | |||
|
188 | page-break-inside: avoid; | |||
|
189 | } | |||
|
190 | ||||
187 | div.input_area { |
|
191 | div.input_area { | |
188 | color: black; |
|
192 | color: black; | |
189 | } |
|
193 | } | |
@@ -203,7 +207,8 b' div.output_prompt {' | |||||
203 |
|
207 | |||
204 | /* This class is applied to all types of output (pyout, pyerr, stream, display_data) */ |
|
208 | /* This class is applied to all types of output (pyout, pyerr, stream, display_data) */ | |
205 | div.output_area { |
|
209 | div.output_area { | |
206 | padding: 0px 0.4em |
|
210 | padding: 0px 0.4em; | |
|
211 | page-break-inside: avoid; | |||
207 | } |
|
212 | } | |
208 |
|
213 | |||
209 | /* This is the output area after the Out[] prompt of type pyout */ |
|
214 | /* This is the output area after the Out[] prompt of type pyout */ | |
@@ -295,3 +300,8 b' div.text_cell_render {' | |||||
295 | font-family: monospace; |
|
300 | font-family: monospace; | |
296 | } |
|
301 | } | |
297 |
|
302 | |||
|
303 | @media print { | |||
|
304 | body { overflow: visible !important; } | |||
|
305 | .ui-widget-content { border: 0px; } | |||
|
306 | } | |||
|
307 |
@@ -206,12 +206,12 b' var IPython = (function (IPython) {' | |||||
206 |
|
206 | |||
207 | CodeCell.prototype.append_pyout = function (json) { |
|
207 | CodeCell.prototype.append_pyout = function (json) { | |
208 | n = json.prompt_number || ' '; |
|
208 | n = json.prompt_number || ' '; | |
209 | var toinsert = $("<div/>").addClass("output_pyout hbox"); |
|
209 | var toinsert = $("<div/>").addClass("output_pyout hbox output_area"); | |
210 | toinsert.append($('<div/>'). |
|
210 | toinsert.append($('<div/>'). | |
211 | addClass('prompt output_prompt'). |
|
211 | addClass('prompt output_prompt'). | |
212 | html('Out[' + n + ']:') |
|
212 | html('Out[' + n + ']:') | |
213 | ); |
|
213 | ); | |
214 |
this.append_mime_type(json, toinsert) |
|
214 | this.append_mime_type(json, toinsert); | |
215 | toinsert.children().last().addClass("box_flex1 pyout_area"); |
|
215 | toinsert.children().last().addClass("box_flex1 pyout_area"); | |
216 | this.element.find("div.output").append(toinsert); |
|
216 | this.element.find("div.output").append(toinsert); | |
217 | // If we just output latex, typeset it. |
|
217 | // If we just output latex, typeset it. | |
@@ -252,19 +252,19 b' var IPython = (function (IPython) {' | |||||
252 | CodeCell.prototype.append_mime_type = function (json, element) { |
|
252 | CodeCell.prototype.append_mime_type = function (json, element) { | |
253 | element = element || this.element.find("div.output"); |
|
253 | element = element || this.element.find("div.output"); | |
254 | if (json.html !== undefined) { |
|
254 | if (json.html !== undefined) { | |
255 | this.append_html(json.html, element); |
|
255 | inserted = this.append_html(json.html, element); | |
256 | } else if (json.latex !== undefined) { |
|
256 | } else if (json.latex !== undefined) { | |
257 | this.append_latex(json.latex, element); |
|
257 | inserted = this.append_latex(json.latex, element); | |
258 | } else if (json.svg !== undefined) { |
|
258 | } else if (json.svg !== undefined) { | |
259 | this.append_svg(json.svg, element); |
|
259 | inserted = this.append_svg(json.svg, element); | |
260 | } else if (json.png !== undefined) { |
|
260 | } else if (json.png !== undefined) { | |
261 | this.append_png(json.png, element); |
|
261 | inserted = this.append_png(json.png, element); | |
262 | } else if (json.jpeg !== undefined) { |
|
262 | } else if (json.jpeg !== undefined) { | |
263 | this.append_jpeg(json.jpeg, element); |
|
263 | inserted = this.append_jpeg(json.jpeg, element); | |
264 | } else if (json.text !== undefined) { |
|
264 | } else if (json.text !== undefined) { | |
265 | this.append_text(json.text, element); |
|
265 | inserted = this.append_text(json.text, element); | |
266 | }; |
|
266 | }; | |
267 |
return |
|
267 | return inserted; | |
268 | }; |
|
268 | }; | |
269 |
|
269 | |||
270 |
|
270 | |||
@@ -273,7 +273,7 b' var IPython = (function (IPython) {' | |||||
273 | var toinsert = $("<div/>").addClass("output_html rendered_html"); |
|
273 | var toinsert = $("<div/>").addClass("output_html rendered_html"); | |
274 | toinsert.append(html); |
|
274 | toinsert.append(html); | |
275 | element.append(toinsert); |
|
275 | element.append(toinsert); | |
276 |
return |
|
276 | return toinsert; | |
277 | } |
|
277 | } | |
278 |
|
278 | |||
279 |
|
279 | |||
@@ -282,7 +282,7 b' var IPython = (function (IPython) {' | |||||
282 | var toinsert = $("<div/>").addClass("output_stream"); |
|
282 | var toinsert = $("<div/>").addClass("output_stream"); | |
283 | toinsert.append($("<pre/>").html(data)); |
|
283 | toinsert.append($("<pre/>").html(data)); | |
284 | element.append(toinsert); |
|
284 | element.append(toinsert); | |
285 |
return |
|
285 | return toinsert; | |
286 | }; |
|
286 | }; | |
287 |
|
287 | |||
288 |
|
288 | |||
@@ -291,7 +291,7 b' var IPython = (function (IPython) {' | |||||
291 | var toinsert = $("<div/>").addClass("output_svg"); |
|
291 | var toinsert = $("<div/>").addClass("output_svg"); | |
292 | toinsert.append(svg); |
|
292 | toinsert.append(svg); | |
293 | element.append(toinsert); |
|
293 | element.append(toinsert); | |
294 |
return |
|
294 | return toinsert; | |
295 | }; |
|
295 | }; | |
296 |
|
296 | |||
297 |
|
297 | |||
@@ -300,7 +300,7 b' var IPython = (function (IPython) {' | |||||
300 | var toinsert = $("<div/>").addClass("output_png"); |
|
300 | var toinsert = $("<div/>").addClass("output_png"); | |
301 | toinsert.append($("<img/>").attr('src','data:image/png;base64,'+png)); |
|
301 | toinsert.append($("<img/>").attr('src','data:image/png;base64,'+png)); | |
302 | element.append(toinsert); |
|
302 | element.append(toinsert); | |
303 |
return |
|
303 | return toinsert; | |
304 | }; |
|
304 | }; | |
305 |
|
305 | |||
306 |
|
306 | |||
@@ -309,7 +309,7 b' var IPython = (function (IPython) {' | |||||
309 | var toinsert = $("<div/>").addClass("output_jpeg"); |
|
309 | var toinsert = $("<div/>").addClass("output_jpeg"); | |
310 | toinsert.append($("<img/>").attr('src','data:image/jpeg;base64,'+jpeg)); |
|
310 | toinsert.append($("<img/>").attr('src','data:image/jpeg;base64,'+jpeg)); | |
311 | element.append(toinsert); |
|
311 | element.append(toinsert); | |
312 |
return |
|
312 | return toinsert; | |
313 | }; |
|
313 | }; | |
314 |
|
314 | |||
315 |
|
315 | |||
@@ -320,7 +320,7 b' var IPython = (function (IPython) {' | |||||
320 | var toinsert = $("<div/>").addClass("output_latex"); |
|
320 | var toinsert = $("<div/>").addClass("output_latex"); | |
321 | toinsert.append(latex); |
|
321 | toinsert.append(latex); | |
322 | element.append(toinsert); |
|
322 | element.append(toinsert); | |
323 |
return |
|
323 | return toinsert; | |
324 | } |
|
324 | } | |
325 |
|
325 | |||
326 |
|
326 |
@@ -51,4 +51,4 b' var IPython = (function (IPython) {' | |||||
51 |
|
51 | |||
52 | return IPython; |
|
52 | return IPython; | |
53 |
|
53 | |||
54 | }(IPython)); No newline at end of file |
|
54 | }(IPython)); |
@@ -69,7 +69,7 b'' | |||||
69 | </span> |
|
69 | </span> | |
70 | <span class="section_row_buttons"> |
|
70 | <span class="section_row_buttons"> | |
71 | <span id="print_widget"> |
|
71 | <span id="print_widget"> | |
72 |
<button id="print_notebook">Print |
|
72 | <button id="print_notebook">Print</button> | |
73 | </span> |
|
73 | </span> | |
74 |
|
74 | |||
75 | <button id="download_notebook">Export</button> |
|
75 | <button id="download_notebook">Export</button> |
General Comments 0
You need to be logged in to leave comments.
Login now