{%- extends 'nbconvert/templates/reveal/index.html.j2' -%} {% import "log.macro.html.j2" as log %} {% import "spinner.macro.html.j2" as spinner %} {% from 'voila_setup.macro.html.j2' import voila_setup_helper_functions, voila_setup with context %} {%- block html_head_js -%} {%- block html_head_js_requirejs -%} {{ resources.include_js("static/require.min.js") }} {%- endblock html_head_js_requirejs -%} {%- block html_head_js_logs -%} {{ log.js() }} {%- endblock html_head_js_logs -%} {%- block html_head_js_jquery -%} {%- endblock html_head_js_jquery -%} {% block notebook_execute %} {# Copy so we do not modify the page_config with updates. #} {% set page_config_full = page_config.copy() %} {%- set kernel_id = kernel_start(nb) -%} {# Set a dummy variable - we just want the side effect of the update. #} {% set _ = page_config_full.update(baseUrl=resources.base_url, kernelId=kernel_id) %} {# from this point on, nb.cells contains output of the executed cells #} {% do notebook_execute(nb, kernel_id) %} {%- endblock notebook_execute -%} {%- endblock html_head_js -%} {%- block notebook_css -%} {{ resources.include_css("static/materialcolors.css") }} {{ resources.include_css("static/labvariables.css") }} {% if frontend == "voila" %} {{ resources.include_js("static/voila-style.js") }} {% endif %} {{ spinner.css() }} {{ super() }} {%- endblock notebook_css -%} {%- block html_head_js_mathjax -%} {# remove mathjax CDN #} {%- endblock html_head_js_mathjax -%} {% block body_header %} {% if resources.theme == 'dark' %}
{% else %} {% endif %} {{ spinner.html() }} {{ voila_setup_helper_functions() }} {%- endblock body_footer -%} {% block footer_js %} {{ voila_setup(resources.base_url, resources.labextensions) }} {{ super() }} {% endblock footer_js %}