Show More
@@ -1,37 +1,37 | |||||
1 | {%- extends 'basic.tpl' -%} |
|
1 | {%- extends 'basic.tpl' -%} | |
2 |
|
2 | |||
3 | {% block codecell scoped %} |
|
3 | {% block codecell scoped %} | |
4 | # In[{{cell.prompt_number if cell.prompt_number else ' '}}]: |
|
4 | # In[{{cell.prompt_number if cell.prompt_number else ' '}}]: | |
5 | {{ cell.input }} |
|
5 | {{ cell.input }} | |
6 | {% if cell.outputs %} |
|
6 | {% if cell.outputs %} | |
7 | # Out[{{cell.prompt_number}}]: |
|
7 | # Out[{{cell.prompt_number}}]: | |
8 | {%- for output in cell.outputs -%} |
|
8 | {%- for output in cell.outputs -%} | |
9 | {% if output.output_type in ['pyout','stream']%} |
|
9 | {%- if output.output_type in ['pyout','stream']%} | |
10 | {{ output.text| indent | pycomment}} |
|
10 | {{ output.text| indent | pycomment}} | |
11 | {% elif output.output_type in ['display_data'] %} |
|
11 | {%- elif output.output_type in ['display_data'] %} | |
12 | {{"# fucking display_data"}} |
|
12 | {{"# image file: fucking display_data"}} | |
13 | {% elif output.output_type in ['pyerr'] %} |
|
13 | {%- elif output.output_type in ['pyerr'] %} | |
14 | {% for line in output.traceback %} |
|
14 | {%- for line in output.traceback %} | |
15 | {{ line |indent| rm_ansi}} |
|
15 | {{ line |indent| rm_ansi}} | |
|
16 | {%- endfor %} | |||
|
17 | {%- endif %} | |||
16 | {%- endfor -%} |
|
18 | {%- endfor -%} | |
17 |
|
|
19 | {% endif %} | |
18 | {%- endfor -%} |
|
|||
19 | {%endif%} |
|
|||
20 |
|
20 | |||
21 | {% endblock codecell %} |
|
21 | {% endblock codecell %} | |
22 |
|
22 | |||
23 | {% block markdowncell scoped %} |
|
23 | {% block markdowncell scoped %} | |
24 | {{ cell.source | pycomment | rm_fake}} |
|
24 | {{ cell.source | pycomment | rm_fake}} | |
25 | {% endblock markdowncell %} |
|
25 | {% endblock markdowncell %} | |
26 |
|
26 | |||
27 | {% block headingcell scoped %} |
|
27 | {% block headingcell scoped %} | |
28 | {{ '#' * cell.level }}{{ cell.source | pycomment}} |
|
28 | {{ '#' * cell.level }}{{ cell.source | pycomment}} | |
29 | {% endblock headingcell %} |
|
29 | {% endblock headingcell %} | |
30 |
|
30 | |||
31 | {% block rawcell scoped %} |
|
31 | {% block rawcell scoped %} | |
32 | {{ cell.source | pycomment }} |
|
32 | {{ cell.source | pycomment }} | |
33 | {% endblock rawcell %} |
|
33 | {% endblock rawcell %} | |
34 |
|
34 | |||
35 | {% block unknowncell scoped %} |
|
35 | {% block unknowncell scoped %} | |
36 | unknown type {{cell.type}} |
|
36 | unknown type {{cell.type}} | |
37 | {% endblock unknowncell %} |
|
37 | {% endblock unknowncell %} |
General Comments 0
You need to be logged in to leave comments.
Login now