{%- extends 'display_priority.tpl' -%} {% block codecell %}
{{ super() }}
{%- endblock codecell %} {% block input_group -%}
{{ super() }}
{% endblock input_group %} {% block output_group %}
{{ super() }}
{% endblock output_group %} {% block in_prompt -%}
{%- if cell.prompt_number is defined -%} In [{{ cell.prompt_number|replace(None, " ") }}]: {%- else -%} In [ ]: {%- endif -%}
{%- endblock in_prompt %} {% block empty_in_prompt -%}
{%- endblock empty_in_prompt %} {# output_prompt doesn't do anything in HTML, because there is a prompt div in each output area (see output block) #} {% block output_prompt %} {% endblock output_prompt %} {% block input %}
{{ cell.input | highlight2html(language=resources.get('language'), metadata=cell.metadata) }}
{%- endblock input %} {% block output %}
{%- if output.output_type == 'pyout' -%}
{%- if cell.prompt_number is defined -%} Out[{{ cell.prompt_number|replace(None, " ") }}]: {%- else -%} Out[ ]: {%- endif -%} {%- else -%}
{%- endif -%}
{{ super() }}
{% endblock output %} {% block markdowncell scoped %}
{{ self.empty_in_prompt() }}
{{ cell.source | markdown2html | strip_files_prefix }}
{%- endblock markdowncell %} {% block headingcell scoped %}
{{ self.empty_in_prompt() }}
{{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }}
{% endblock headingcell %} {% block unknowncell scoped %} unknown type {{ cell.type }} {% endblock unknowncell %} {% block pyout -%} {%- set extra_class="output_pyout" -%} {% block data_priority scoped %} {{ super() }} {% endblock %} {%- set extra_class="" -%} {%- endblock pyout %} {% block stream_stdout -%}
{{ output.text | ansi2html }}
{%- endblock stream_stdout %} {% block stream_stderr -%}
{{ output.text | ansi2html }}
{%- endblock stream_stderr %} {% block data_svg scoped -%}
{%- if output.svg_filename %} {%- endblock data_svg %} {% block data_html scoped -%}
{{ output.html }}
{%- endblock data_html %} {% block data_png scoped %}
{%- if output.png_filename %}
{%- endblock data_png %} {% block data_jpg scoped %}
{%- if output.jpeg_filename %}
{%- endblock data_jpg %} {% block data_latex scoped %}
{{ output.latex }}
{%- endblock data_latex %} {% block pyerr -%}
{{ super() }}
{%- endblock pyerr %} {%- block traceback_line %} {{ line | ansi2html }} {%- endblock traceback_line %} {%- block data_text scoped %}
{{ output.text | ansi2html }}
{%- endblock -%} {%- block data_javascript scoped %}
{%- endblock -%}