{%- extends 'nbconvert/templates/lab/index.html.j2' -%} {% import "spinner.macro.html.j2" as spinner %} {% import "log.macro.html.j2" as log %} {% from 'voila_setup.macro.html.j2' import voila_setup_helper_functions, voila_setup_labextensions with context %} {%- block html_head_js -%} {%- block html_head_js_logs -%} {{ log.js() }} {%- endblock html_head_js_logs -%} {%- endblock html_head_js -%} {%- block notebook_css -%} {% if frontend == "voila" %} {{ resources.include_js("static/voila-style.js") }} {% endif %} {{ spinner.css() }} {% if resources.show_margins %} {% endif %} {{ super() }} {%- endblock notebook_css -%} {%- block html_head_js_mathjax -%} {# remove mathjax CDN #} {%- endblock html_head_js_mathjax -%} {# this overrides the default behaviour of rendering static widgets #} {% block jupyter_widgets %} {% endblock jupyter_widgets %} {%- block body_header -%} {% if resources.theme == 'dark' or resources.theme == 'JupyterLab Dark' %}
{% elif resources.theme == 'light' or resources.theme == 'JupyterLab Light' %} {% else %} {% endif %} {{ spinner.html() }} {{ voila_setup_helper_functions() }} {{ voila_setup_labextensions(resources.base_url, resources.labextensions) }} {{ super() }} {%- endblock body_footer -%} {%- block footer %} {% block footer_js %} {% endblock footer_js %} {%- endblock footer-%}