nbconvert icon indicating copy to clipboard operation
nbconvert copied to clipboard

Support for collapsing of code/output in a style of jupyter lab

Open arogozhnikov opened this issue 4 years ago • 2 comments

I find a collapsing feature of jupyterlab very useful for hiding large code fragments or output blocks.

nbviewer as a tool can provide the same conveniences, and also align with current development of jupyter.

What do you think?

arogozhnikov avatar Nov 11 '21 21:11 arogozhnikov

Supporting hide_inputs / hide_outputs by default for exports would be nice.

What would be needed is to have remove_all_outputs_tags and remove_input_tags from the TagRemovePreprocessor default to the same tags as jupyterlab, though we don't default exporters to use that preprocessor. @SylvainCorlay thoughts on what we might want have as a default?

MSeal avatar Nov 14 '21 21:11 MSeal

Hi,

Quite an old thread but it seems the issue is still a thing and just wanted to add my two cents. It would be very nice to be able to export without code blocks being visible in the output, and the most user-friendly way would IMO be that the output follows whether the cells are hidden or not in the viewer.

I use my notebooks for scientific stuff, for example to plot calculations and data throughout the text, so having code blocks in the output quickly becomes quite distracting.

Best regards, Jonas

jonasbjorklundsvensson avatar Nov 08 '23 13:11 jonasbjorklundsvensson