{%- extends 'display_priority.tpl' -%} {% from 'celltags.tpl' import celltags %} {% block codecell %}
{{ super() }}
{%- endblock codecell %} {% block input_group -%}
{{ super() }}
{% endblock input_group %} {% block output_group %}
{{ super() }}
{% endblock output_group %} {% block in_prompt -%}
{%- if cell.execution_count is defined -%} In [{{ cell.execution_count|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.source | highlight_code(metadata=cell.metadata) }}
{%- endblock input %} {% block output_area_prompt %} {%- if output.output_type == 'execute_result' -%}
{%- if cell.execution_count is defined -%} Out[{{ cell.execution_count|replace(None, " ") }}]: {%- else -%} Out[ ]: {%- endif -%} {%- else -%}
{%- endif -%}
{% endblock output_area_prompt %} {% block output %}
{% if resources.global_content_filter.include_output_prompt %} {{ self.output_area_prompt() }} {% endif %} {{ super() }}
{% endblock output %} {% block markdowncell scoped %}
{%- if resources.global_content_filter.include_input_prompt-%} {{ self.empty_in_prompt() }} {%- endif -%}
{{ cell.source | markdown2html | strip_files_prefix }}
{%- endblock markdowncell %} {% block unknowncell scoped %} unknown type {{ cell.type }} {% endblock unknowncell %} {% block execute_result -%} {%- set extra_class="output_execute_result" -%} {% block data_priority scoped %} {{ super() }} {% endblock data_priority %} {%- set extra_class="" -%} {%- endblock execute_result %} {% 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 %} {%- else %} {{ output.data['image/svg+xml'] }} {%- endif %}
{%- endblock data_svg %} {% block data_html scoped -%}
{{ output.data['text/html'] }}
{%- endblock data_html %} {% block data_markdown scoped -%}
{{ output.data['text/markdown'] | markdown2html }}
{%- endblock data_markdown %} {% block data_png scoped %}
{%- if 'image/png' in output.metadata.get('filenames', {}) %} {{ alttext }}
{%- endblock data_png %} {% block data_jpg scoped %}
{%- if 'image/jpeg' in output.metadata.get('filenames', {}) %} {{ alttext }}
{%- endblock data_jpg %} {% block data_latex scoped %}
{{ output.data['text/latex'] }}
{%- endblock data_latex %} {% block error -%}
{{- super() -}}
{%- endblock error %} {%- block traceback_line %} {{ line | ansi2html }} {%- endblock traceback_line %} {%- block data_text scoped %}
{{- output.data['text/plain'] | ansi2html -}}
{%- endblock -%} {%- block data_javascript scoped %} {% set div_id = uuid4() %}
{%- endblock -%} {%- block data_widget_state scoped %} {% set div_id = uuid4() %} {% set datatype_list = output.data | filter_data_type %} {% set datatype = datatype_list[0]%}
{%- endblock data_widget_state -%} {%- block data_widget_view scoped %} {% set div_id = uuid4() %} {% set datatype_list = output.data | filter_data_type %} {% set datatype = datatype_list[0]%}
{%- endblock data_widget_view -%} {%- block footer %} {% set mimetype = 'application/vnd.jupyter.widget-state+json'%} {% if mimetype in nb.metadata.get("widgets",{})%} {% endif %} {{ super() }} {%- endblock footer-%}