Jupyter Notebook: command for hide the output of a cell?

前端 未结 7 823
被撕碎了的回忆
被撕碎了的回忆 2021-02-03 17:30

In my notebook, I have a cell returning temp calculation results. It\'s a bit long, so after it is run, I want to hide it and when needed, to show it.

To do it manually,

7条回答
  •  甜味超标
    2021-02-03 17:49

    In newer versions of Jupiter Notebook, select the desired cell, make sure you're in command mode and then on the menubar press Cell > Current Outputs. You have then three options:

    • Toggle (press O in the command mode to apply the same effect)
    • Toggle Scrolling (the default output)
    • Clear (to clear the output all together)

    Image to Menubar Options

    Additionally, you can apply the same effect to all the cells in your document if you chose All Output instead of Current Output.

提交回复
热议问题