##// END OF EJS Templates
Merge pull request #3758 from jdfreder/filter_refact...
Merge pull request #3758 from jdfreder/filter_refact nbconvert: Filter names cleanup highlight -> highlight2foo markdown -> markdown2html python_comment -> comment_lines rm_ansi -> strip_ansi rm_dollars -> strip_dollars rm_fake -> strip_files_prefix html_text -> html2text rm_math_space -> strip_math_space wrap -> wrap_text

File last commit:

r11685:1f458eea
r11689:75f7bb9c merge
Show More
python.tpl
56 lines | 1.2 KiB | application/vnd.groove-tool-template | SmartyLexer
Matthias BUSSONNIER
bring back python.tpl
r9605 {%- extends 'null.tpl' -%}
{% block in_prompt %}
# In[{{cell.prompt_number if cell.prompt_number else ' '}}]:
{% endblock in_prompt %}
{% block output_prompt %}
# Out[{{cell.prompt_number}}]:{% endblock output_prompt %}
{% block input %}{{ cell.input }}
{% endblock input %}
{# Those Two are for error displaying
even if the first one seem to do nothing,
it introduces a new line
#}
{% block pyerr %}{{ super() }}
{% endblock pyerr %}
{% block traceback_line %}
Jonathan Frederic
Filter names cleanup
r11685 {{ line |indent| strip_ansi }}{% endblock traceback_line %}
Matthias BUSSONNIER
bring back python.tpl
r9605 {# .... #}
{% block pyout %}
Jonathan Frederic
Filter names cleanup
r11685 {{ output.text| indent | comment_lines }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock pyout %}
{% block stream %}
Jonathan Frederic
Filter names cleanup
r11685 {{ output.text| indent | comment_lines }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock stream %}
{% block display_data scoped %}
# image file:
{% endblock display_data %}
{% block markdowncell scoped %}
Jonathan Frederic
Filter names cleanup
r11685 {{ cell.source | comment_lines }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock markdowncell %}
{% block headingcell scoped %}
Jonathan Frederic
Filter names cleanup
r11685 {{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock headingcell %}
{% block rawcell scoped %}
Jonathan Frederic
Filter names cleanup
r11685 {{ cell.source | comment_lines }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock rawcell %}
{% block unknowncell scoped %}
unknown type {{cell.type}}
{% endblock unknowncell %}