##// END OF EJS Templates
Merge pull request #4922 from minrk/python-no-output...
Brian E. Granger -
r14899:7b7d42f2 merge
parent child Browse files
Show More
@@ -1,43 +1,13 b''
1 {%- extends 'null.tpl' -%}
1 {%- extends 'null.tpl' -%}
2
2
3
4 {% block in_prompt %}
3 {% block in_prompt %}
5 # In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:
4 # In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:
6 {% endblock in_prompt %}
5 {% endblock in_prompt %}
7
6
8 {% block output_prompt %}
9 # Out[{{ cell.prompt_number }}]:
10 {% endblock output_prompt %}
11
12 {% block input %}
7 {% block input %}
13 {{ cell.input | ipython2python }}
8 {{ cell.input | ipython2python }}
14 {% endblock input %}
9 {% endblock input %}
15
10
16 {# Those Two are for error displaying
17 even if the first one seem to do nothing,
18 it introduces a new line
19 #}
20 {% block pyerr %}
21 {{ super() }}
22 {% endblock pyerr %}
23
24 {% block traceback_line %}
25 {{ line | indent | strip_ansi }}
26 {% endblock traceback_line %}
27 {# .... #}
28
29 {% block pyout %}
30 {{ output.text or '' | indent | comment_lines }}
31 {% endblock pyout %}
32
33 {% block stream %}
34 {{ output.text | indent | comment_lines }}
35 {% endblock stream %}
36
37 {% block display_data scoped %}
38 # image file:
39 {% endblock display_data %}
40
41 {% block markdowncell scoped %}
11 {% block markdowncell scoped %}
42 {{ cell.source | comment_lines }}
12 {{ cell.source | comment_lines }}
43 {% endblock markdowncell %}
13 {% endblock markdowncell %}
@@ -45,7 +15,3 b' it introduces a new line'
45 {% block headingcell scoped %}
15 {% block headingcell scoped %}
46 {{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }}
16 {{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }}
47 {% endblock headingcell %}
17 {% endblock headingcell %}
48
49 {% block unknowncell scoped %}
50 unknown type {{ cell.type }}
51 {% endblock unknowncell %}
General Comments 0
You need to be logged in to leave comments. Login now