{%- extends 'nbconvert/templates/classic/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_logs -%} {{ log.js() }} {%- endblock html_head_js_logs -%} {%- block html_head_js_jquery -%} {%- endblock html_head_js_jquery -%} {# this overrides the default behaviour of rendering static widgets #} {% block jupyter_widgets %} {% endblock jupyter_widgets %} {% 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") }} {{ resources.include_js("static/voila-style.js") }} {{ spinner.css() }} {{ super() }} {%- endblock notebook_css -%} {%- block html_head_js_mathjax -%} {# remove mathjax CDN #} {%- endblock html_head_js_mathjax -%} {% block body_header %}
{{ spinner.html() }} {{ voila_setup_helper_functions() }}