{# INPUT: - ``cell`` -- Cell instance - ``wrap`` - an integer stating column position to wrap lines. Defaults to configuration if not given. - ``div_wrap`` - a boolean stating whether to wrap ``div``. - ``do_print`` - a boolean stating whether the HTML is for print or not. - ``publish`` - a boolean; whether this is a published cell #} {% if do_print %} {% set wrap_ = 68 %} {% set div_wrap_ = true %} {% else %} {% set wrap_ = wrap %} {% set div_wrap_ = div_wrap %} {% endif %} {% set cell_cls = "cell_evaluated" if cell.evaluated() or do_print or publish else "cell_not_evaluated" %} {% if div_wrap_ %}
        
        {% else %}
        {% set output_cls = 'cell_div_output_running' if cell.computing() else 'cell_div_output_' + cell.cell_output_type() %}
        | {% for i in range(7) %} {% endfor %} | 
                                {% if cell.introspect() %}
                                    {{ cell.output_text(0, html=true) | safe }}
                                {% else %}
                                    {{ cell.output_text(wrap_, html=true) | safe }}
                                {% endif %}
                            {% if not do_print %} 
                                    {{ cell.output_text(0, html=true) | safe }}
                                {% endif %} 
                                    {{ cell.output_html() | safe }}
                                 |