How to hide one specific cell (input or output) in IPython Notebook?

后端 未结 10 1522
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 21:53

Is there a way to selectively hide one specific input or output cell in IPython notebook?

I could only find the below code to show / hide all input cells.

h

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 22:10

    Using that code:

    # @hidden
    from IPython.display import HTML
    HTML('''
    The raw code for this IPython notebook is by default hidden for easier reading.
    To toggle on/off the raw code, click here.''')
    

    Extracted from here and modified by me.

    You can hide lines with comment:

    # @hidden
    

提交回复
热议问题