Skip to content

Instantly share code, notes, and snippets.

@xoelop
Last active December 20, 2019 19:07
Show Gist options
  • Save xoelop/9cd6e261fbbfc94a679c209336e2e160 to your computer and use it in GitHub Desktop.
Save xoelop/9cd6e261fbbfc94a679c209336e2e160 to your computer and use it in GitHub Desktop.
Jupyter nbconvert template to create reports where cells marked as skip (for slideshows) are hidden in the report.
{%- extends 'full.tpl' -%}
{%- block header -%}
{{ super() }}
<meta name='robots' content='noindex,nofollow' />
{%- endblock header -%}
{% block any_cell %}
{%- if cell.metadata.get('slideshow', {}).get('slide_type', '') == 'skip' -%}
{%- else -%}
{{ super() }}
{%- endif -%}
{% endblock any_cell %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment