{% if font is is_google_font or code_font is is_google_font %} {% endif %} {% if font is is_google_font %} {% endif %} {% if code_font is is_google_font %} {% endif %}

{{filename}}

{{date_.strftime('%B %d, %Y')}}

{% for cell in notebook.cells %} {% if cell.cell_type == "markdown" %}
{{cell.source | get_source | md2html | safe}}
{% endif %} {% if cell.cell_type == "code" %}
{{cell.source | get_source | highlight }}
{% for output in cell.outputs %} {% if output.output_type == "stream" %}
{{output.text | get_source }}
{% endif %} {% if output.output_type == "error" %}
{{output.ename | ansi2html}}: {{output.evalue | ansi2html}}
{{'\n'.join(output.traceback) | ansi2html}}
{% endif %} {% if output.output_type in ('display_data', 'execute_result') %} {% if output.output_type == "execute_result" %}
Out [{{output.execution_count}}]:
{% endif %} {% for mimetype, data in output.data.items() %} {% if mimetype == "text/plain" %} {{data | get_source}} {% endif %} {% if mimetype == "text/markdown" %} {{data | get_source | md2html | safe }} {% endif %} {% if mimetype == "text/html" %} {{data | get_source | safe }} {% endif %} {% if mimetype is isb64image %} display_data result {% endif %} {% if mimetype == "image/svg+xml" %} {{data | get_source | safe}} {% endif %} {% if mimetype is isjson %} {{data | get_source | tojson(indent=2)}} {% endif %} {% endfor %} {% endif %} {% endfor %}
{% endif %} {% endfor %}