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