Collapse only code cells, not Markdown cells to quickly get a "presentable" view. #16906
Unanswered
b-a0
asked this question in
Questions and Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Often I use a notebook to show and explore a dataset, where I intersperse Python code cells with Markdown cells.
The code cells output a Dataframe or a plot, the Markdown cells add questions, notes and other context.
When showing this to someone I am not interested in showing the Python code cells, so I collapse those manually. However, this expanding/collapsing becomes tedious after a while, so I am looking for a "collapse all code cells" function (and expand as well).
I've tried the "collapse all cell inputs", but this also collapse the Markdown cells, which is not what I am looking for.
Is there a way to collapse all cells in a notebook that are actual code and only show their output?
I know of "heavier" tools like quarto that provide extra control on what type of cells are shown, but that would require additional tools and would be overkill for the simple collapse/expand functionality I am looking for.
Beta Was this translation helpful? Give feedback.
All reactions