1 2 3 4
<div> <span id="output">{{ output }}</span> <span id="plot">{% if plot_path %}<img src="{{ plot_path }}" style="width:400px;">{% endif %}</span> </div>