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