{# 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_ %}
{% endif %} {% if 'hideall' not in cell.percent_directives() %} {# input #} {% if not do_print and not publish %}
{% if not cell.worksheet().docbrowser() %}
{% endif %}
{% endif %} {% if 'hide' in cell.percent_directives() %} {% set input_cls = 'cell_input_hide' %} {% else %} {% set input_cls = 'cell_input' %} {% endif %} {% if publish and conf['pub_interact'] %} {# We don't condition on interact cells here, for the sake of a uniform appearance. #} {% if cell.is_interactive_cell() %} reset {% endif %} {% elif do_print or publish %}
{{ cell.input_text().rstrip() }} 
{% else %} {% endif %} {# end input #}
{% endif %} {% if do_print and cell.cell_output_type() == 'hidden' %}
        
{% 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 }}
{% endif %} {% if div_wrap_ %}
{% endif %}