diff --git a/share/jupyter/voila/templates/lab/index.html.j2 b/share/jupyter/voila/templates/lab/index.html.j2 index e09fe4987..1d7656782 100644 --- a/share/jupyter/voila/templates/lab/index.html.j2 +++ b/share/jupyter/voila/templates/lab/index.html.j2 @@ -10,7 +10,9 @@ {%- endblock html_head_js -%} {%- block notebook_css -%} - {{ resources.include_js("static/voila-style.js") }} + {% if frontend == "voila" %} + {{ resources.include_js("static/voila-style.js") }} + {% endif %} {{ spinner.css() }} diff --git a/share/jupyter/voila/templates/lab/tree.html b/share/jupyter/voila/templates/lab/tree.html index cac7d558e..53932b905 100644 --- a/share/jupyter/voila/templates/lab/tree.html +++ b/share/jupyter/voila/templates/lab/tree.html @@ -5,6 +5,9 @@ {% block stylesheets %} {{ super() }} + {% if frontend == "voila" %} + {{ resources.include_js("static/voila-style.js") }} + {% endif %}