{%- extends 'display_priority.j2' -%} {% 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 | escape_html -}}
{%- endblock stream_stdout %} {% block stream_stderr -%}
{{- output.text | escape_html -}}
{%- endblock stream_stderr %} {% block data_svg scoped -%} {%- if output.svg_filename %} {%- else %} {{ output.data['image/svg+xml'].encode("utf-8") | clean_html }} {%- endif %} {%- endblock data_svg %} {% block data_html scoped -%} {%- if resources.should_sanitize_html %} {%- set html_value=output.data['text/html'] | clean_html -%} {%- else %} {%- set html_value=output.data['text/html'] -%} {%- endif %} {%- if output.get('metadata', {}).get('text/html', {}).get('isolated') -%} {%- else -%} {{ html_value }} {%- endif -%} {%- endblock data_html %} {% block data_markdown scoped -%} {%- if resources.should_sanitize_html %} {%- set html_value=output.data['text/markdown'] | markdown2html | clean_html -%} {%- else %} {%- set html_value=output.data['text/markdown'] | markdown2html -%} {%- endif %} {{ html_value }} {%- endblock data_markdown %} {% block data_png scoped %} {#
#} {%- if 'image/png' in output.metadata.get('filenames', {}) %} {{ alttext | escape_html }} {#
#} {%- endblock data_png %} {% block data_jpg scoped %} {#
#} {%- if 'image/jpeg' in output.metadata.get('filenames', {}) %} {{ alttext | escape_html }} {#
#} {%- endblock data_jpg %} {% block data_latex scoped %} {#
#} {{ output.data['text/latex'] | e }} {#
#} {%- 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() %}
{%- if not resources.should_sanitize_html %} {%- endif %}
{%- endblock -%} { {%- 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 %} {%- if not resources.should_sanitize_html %} {% set mimetype = 'application/vnd.jupyter.widget-state+json'%} {% if mimetype in nb.metadata.get("widgets",{})%} {% endif %} {%- endif %} {{ super() }} {%- endblock footer-%} {%- macro cell_display_priority(i, outputs, cell) -%} {%- for i, output in enumerate(outputs) -%} {%- block output scoped -%}{{super()}}{%- endblock -%} {%- endfor -%} {%- endmacro -%}