Show More
@@ -2,19 +2,13 b'' | |||||
2 |
|
2 | |||
3 |
|
3 | |||
4 | {% block in_prompt %} |
|
4 | {% block in_prompt %} | |
5 | In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]: |
|
|||
6 | {% endblock in_prompt %} |
|
5 | {% endblock in_prompt %} | |
7 |
|
6 | |||
8 | {% block output_prompt %} |
|
7 | {% block output_prompt %} | |
9 | {% if cell.haspyout %} |
|
|||
10 | Out[{{ cell.prompt_number }}]: |
|
|||
11 | {%- endif %} |
|
|||
12 | {%- endblock output_prompt %} |
|
8 | {%- endblock output_prompt %} | |
13 |
|
9 | |||
14 | {% block input %} |
|
10 | {% block input %} | |
15 | ``` |
|
11 | {{ cell.input | indent(4)}} | |
16 | {{ cell.input }} |
|
|||
17 | ``` |
|
|||
18 | {% endblock input %} |
|
12 | {% endblock input %} | |
19 |
|
13 | |||
20 | {% block pyerr %} |
|
14 | {% block pyerr %} | |
@@ -26,6 +20,7 b' Out[{{ cell.prompt_number }}]:' | |||||
26 | {% endblock traceback_line %} |
|
20 | {% endblock traceback_line %} | |
27 |
|
21 | |||
28 | {% block pyout %} |
|
22 | {% block pyout %} | |
|
23 | ||||
29 | {% block data_priority scoped %} |
|
24 | {% block data_priority scoped %} | |
30 | {{ super() }} |
|
25 | {{ super() }} | |
31 | {% endblock %} |
|
26 | {% endblock %} | |
@@ -48,11 +43,13 b' Out[{{ cell.prompt_number }}]:' | |||||
48 | {% endblock data_jpg %} |
|
43 | {% endblock data_jpg %} | |
49 |
|
44 | |||
50 | {% block data_latex %} |
|
45 | {% block data_latex %} | |
51 | $$ |
|
|||
52 | {{ output.latex }} |
|
46 | {{ output.latex }} | |
53 | $$ |
|
|||
54 | {% endblock data_latex %} |
|
47 | {% endblock data_latex %} | |
55 |
|
48 | |||
|
49 | {% block data_html scoped %} | |||
|
50 | {{ output.html }} | |||
|
51 | {% endblock data_html %} | |||
|
52 | ||||
56 | {% block data_text scoped %} |
|
53 | {% block data_text scoped %} | |
57 | {{ output.text | indent }} |
|
54 | {{ output.text | indent }} | |
58 | {% endblock data_text %} |
|
55 | {% endblock data_text %} | |
@@ -61,6 +58,7 b' $$' | |||||
61 | {{ cell.source | wrap_text(80) }} |
|
58 | {{ cell.source | wrap_text(80) }} | |
62 | {% endblock markdowncell %} |
|
59 | {% endblock markdowncell %} | |
63 |
|
60 | |||
|
61 | ||||
64 | {% block headingcell scoped %} |
|
62 | {% block headingcell scoped %} | |
65 | {{ '#' * cell.level }} {{ cell.source | replace('\n', ' ') }} |
|
63 | {{ '#' * cell.level }} {{ cell.source | replace('\n', ' ') }} | |
66 | {% endblock headingcell %} |
|
64 | {% endblock headingcell %} |
@@ -2,25 +2,22 b'' | |||||
2 |
|
2 | |||
3 |
|
3 | |||
4 | {% block in_prompt %} |
|
4 | {% block in_prompt %} | |
5 |
|
||||
6 | In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]: |
|
|||
7 |
|
||||
8 | .. code:: python |
|
|||
9 |
|
||||
10 | {% endblock in_prompt %} |
|
5 | {% endblock in_prompt %} | |
11 |
|
6 | |||
12 | {% block output_prompt %} |
|
7 | {% block output_prompt %} | |
13 | {% if cell.haspyout -%} |
|
|||
14 | Out[{{ cell.prompt_number }}]: |
|
|||
15 | {% endif %} |
|
|||
16 | {% endblock output_prompt %} |
|
8 | {% endblock output_prompt %} | |
17 |
|
9 | |||
18 | {% block input %} |
|
10 | {% block input %} | |
|
11 | {%- if not cell.input.isspace() -%} | |||
|
12 | .. code:: python | |||
|
13 | ||||
19 | {{ cell.input | indent}} |
|
14 | {{ cell.input | indent}} | |
|
15 | {%- endif -%} | |||
20 | {% endblock input %} |
|
16 | {% endblock input %} | |
21 |
|
17 | |||
22 | {% block pyerr %} |
|
18 | {% block pyerr %} | |
23 | :: |
|
19 | :: | |
|
20 | ||||
24 | {{ super() }} |
|
21 | {{ super() }} | |
25 | {% endblock pyerr %} |
|
22 | {% endblock pyerr %} | |
26 |
|
23 | |||
@@ -49,19 +46,27 b" In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:" | |||||
49 | {% endblock data_png %} |
|
46 | {% endblock data_png %} | |
50 |
|
47 | |||
51 | {% block data_jpg %} |
|
48 | {% block data_jpg %} | |
52 |
.. |
|
49 | .. image:: {{ output.jpeg_filename }} | |
53 | {% endblock data_jpg %} |
|
50 | {% endblock data_jpg %} | |
54 |
|
51 | |||
55 | {% block data_latex %} |
|
52 | {% block data_latex %} | |
56 | .. math:: |
|
53 | .. math:: | |
57 | {{ output.latex | indent }} |
|
54 | ||
|
55 | {{ output.latex | strip_dollars | indent }} | |||
58 | {% endblock data_latex %} |
|
56 | {% endblock data_latex %} | |
59 |
|
57 | |||
60 | {% block data_text scoped %} |
|
58 | {% block data_text scoped %} | |
61 | .. parsed-literal:: |
|
59 | .. parsed-literal:: | |
|
60 | ||||
62 | {{ output.text | indent }} |
|
61 | {{ output.text | indent }} | |
63 | {% endblock data_text %} |
|
62 | {% endblock data_text %} | |
64 |
|
63 | |||
|
64 | {% block data_html scoped %} | |||
|
65 | .. raw:: html | |||
|
66 | ||||
|
67 | {{ output.html | indent }} | |||
|
68 | {% endblock data_html %} | |||
|
69 | ||||
65 | {% block markdowncell scoped %} |
|
70 | {% block markdowncell scoped %} | |
66 | {{ cell.source | markdown2rst }} |
|
71 | {{ cell.source | markdown2rst }} | |
67 | {% endblock markdowncell %} |
|
72 | {% endblock markdowncell %} |
General Comments 0
You need to be logged in to leave comments.
Login now