Show More
@@ -1,80 +1,80 b'' | |||
|
1 | 1 | {%- extends 'display_priority.tpl' -%} |
|
2 | 2 | |
|
3 | 3 | |
|
4 | 4 | {% block in_prompt %} |
|
5 | 5 | {% endblock in_prompt %} |
|
6 | 6 | |
|
7 | 7 | {% block output_prompt %} |
|
8 | 8 | {% endblock output_prompt %} |
|
9 | 9 | |
|
10 | 10 | {% block input %} |
|
11 |
{%- if |
|
|
11 | {%- if cell.input.strip() -%} | |
|
12 | 12 | .. code:: python |
|
13 | 13 | |
|
14 | 14 | {{ cell.input | indent}} |
|
15 | 15 | {%- endif -%} |
|
16 | 16 | {% endblock input %} |
|
17 | 17 | |
|
18 | 18 | {% block pyerr %} |
|
19 | 19 | :: |
|
20 | 20 | |
|
21 | 21 | {{ super() }} |
|
22 | 22 | {% endblock pyerr %} |
|
23 | 23 | |
|
24 | 24 | {% block traceback_line %} |
|
25 | 25 | {{ line | indent | strip_ansi }} |
|
26 | 26 | {% endblock traceback_line %} |
|
27 | 27 | |
|
28 | 28 | {% block pyout %} |
|
29 | 29 | {% block data_priority scoped %} |
|
30 | 30 | {{ super() }} |
|
31 | 31 | {% endblock %} |
|
32 | 32 | {% endblock pyout %} |
|
33 | 33 | |
|
34 | 34 | {% block stream %} |
|
35 | 35 | .. parsed-literal:: |
|
36 | 36 | |
|
37 | 37 | {{ output.text | indent }} |
|
38 | 38 | {% endblock stream %} |
|
39 | 39 | |
|
40 | 40 | {% block data_svg %} |
|
41 | 41 | .. image:: {{ output.svg_filename|urlencode }} |
|
42 | 42 | {% endblock data_svg %} |
|
43 | 43 | |
|
44 | 44 | {% block data_png %} |
|
45 | 45 | .. image:: {{ output.png_filename|urlencode }} |
|
46 | 46 | {% endblock data_png %} |
|
47 | 47 | |
|
48 | 48 | {% block data_jpg %} |
|
49 | 49 | .. image:: {{ output.jpeg_filename|urlencode }} |
|
50 | 50 | {% endblock data_jpg %} |
|
51 | 51 | |
|
52 | 52 | {% block data_latex %} |
|
53 | 53 | .. math:: |
|
54 | 54 | |
|
55 | 55 | {{ output.latex | strip_dollars | indent }} |
|
56 | 56 | {% endblock data_latex %} |
|
57 | 57 | |
|
58 | 58 | {% block data_text scoped %} |
|
59 | 59 | .. parsed-literal:: |
|
60 | 60 | |
|
61 | 61 | {{ output.text | indent }} |
|
62 | 62 | {% endblock data_text %} |
|
63 | 63 | |
|
64 | 64 | {% block data_html scoped %} |
|
65 | 65 | .. raw:: html |
|
66 | 66 | |
|
67 | 67 | {{ output.html | indent }} |
|
68 | 68 | {% endblock data_html %} |
|
69 | 69 | |
|
70 | 70 | {% block markdowncell scoped %} |
|
71 | 71 | {{ cell.source | markdown2rst }} |
|
72 | 72 | {% endblock markdowncell %} |
|
73 | 73 | |
|
74 | 74 | {% block headingcell scoped %} |
|
75 | 75 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }} |
|
76 | 76 | {% endblock headingcell %} |
|
77 | 77 | |
|
78 | 78 | {% block unknowncell scoped %} |
|
79 | 79 | unknown type {{cell.type}} |
|
80 | 80 | {% endblock unknowncell %} |
General Comments 0
You need to be logged in to leave comments.
Login now