{% import 'macro' as macro %} {% for chart in charts %} {% if chart._component_type in ("table", "image") %} {{ macro.gen_components_content(chart) }} {% else %}
{% endif %} {% endfor %} {{ macro.render_notebook_charts(charts, libraries) }}