##// END OF EJS Templates
bring back python.tpl
Matthias BUSSONNIER -
Show More
@@ -0,0 +1,56 b''
1 {%- extends 'null.tpl' -%}
2
3 {% block in_prompt %}
4 # In[{{cell.prompt_number if cell.prompt_number else ' '}}]:
5 {% endblock in_prompt %}
6
7 {% block output_prompt %}
8 # Out[{{cell.prompt_number}}]:{% endblock output_prompt %}
9
10 {% block input %}{{ cell.input }}
11 {% endblock input %}
12
13
14 {# Those Two are for error displaying
15 even if the first one seem to do nothing,
16 it introduces a new line
17
18 #}
19 {% block pyerr %}{{ super() }}
20 {% endblock pyerr %}
21
22 {% block traceback_line %}
23 {{ line |indent| rm_ansi }}{% endblock traceback_line %}
24 {# .... #}
25
26
27 {% block pyout %}
28 {{ output.text| indent | pycomment}}
29 {% endblock pyout %}
30
31 {% block stream %}
32 {{ output.text| indent | pycomment}}
33 {% endblock stream %}
34
35
36
37
38 {% block display_data scoped %}
39 # image file:
40 {% endblock display_data %}
41
42 {% block markdowncell scoped %}
43 {{ cell.source | pycomment }}
44 {% endblock markdowncell %}
45
46 {% block headingcell scoped %}
47 {{ '#' * cell.level }}{{ cell.source | pycomment}}
48 {% endblock headingcell %}
49
50 {% block rawcell scoped %}
51 {{ cell.source | pycomment }}
52 {% endblock rawcell %}
53
54 {% block unknowncell scoped %}
55 unknown type {{cell.type}}
56 {% endblock unknowncell %}
General Comments 0
You need to be logged in to leave comments. Login now