I can double click on Output cell to collapse the input cell, but this doesn't appear to work when there are multiple output cells (due to multiple Print statements), as this action is overriden by "collapse cell group" functionality.

Is there a workaround?



I want to collapse the "Print"s and only see what's been printed


1 Answer 1


Highlight the cells within the cell group you wish to show:

enter image description here

now double-click on any of the blue-shaded cell brackets and it should collapse with only those visible:

enter image description here

  • 1
    $\begingroup$ so this generally works, but not when you have mutiple print statements, added an example $\endgroup$ Commented Nov 8, 2023 at 0:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.