# Plot.show() in Quarto notebook after if statement is not showing

**URL:** <https://community.seqera.io/t/plot-show-in-quarto-notebook-after-if-statement-is-not-showing/1175>\
**Category:** Ask for help\
**Tags:** multiqc\
**Created:** [September 10, 2024, 7:05am UTC](https://community.seqera.io/t/plot-show-in-quarto-notebook-after-if-statement-is-not-showing/1175 "2024-09-10T07:05:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vlad.savelyev](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/vlad.savelyev/32/576_2.png) [@vlad.savelyev](https://community.seqera.io/u/vlad.savelyev)\
**Post date:** [October 28, 2024, 2:08pm UTC](https://community.seqera.io/t/plot-show-in-quarto-notebook-after-if-statement-is-not-showing/1175/4 "2024-10-28T14:08:58Z")

</div>

Thanks again to bring this up and sorry for not getting back to your question sooner.  
As we discussed in person, you are correct that `display` is needed to be called on `show` output unless it’s the last line in a cell. Jupyter automatically displays the output of the last line it called, but if it’s within a conditional, the output will be discarded.

Clarified that in the docs with [Document use of display to show plots in notebooks by vladsavelyev · Pull Request #2938 · MultiQC/MultiQC · GitHub](https://github.com/MultiQC/MultiQC/pull/2938)

---

_[View the full topic](https://community.seqera.io/t/plot-show-in-quarto-notebook-after-if-statement-is-not-showing/1175)._
