collapse cell in jupyter notebook

前端 未结 12 1299
长发绾君心
长发绾君心 2020-12-22 17:00

I am using ipython Jupyter notebook. Let\'s say I defined a function that occupies a lot of space on my screen. Is there a way to collapse the cell?

I want the func

12条回答
  •  梦毁少年i
    2020-12-22 17:02

    Firstly, follow Energya's instruction:

    pip install jupyter_contrib_nbextensions
    jupyter contrib nbextension install --user
    pip install jupyter_nbextensions_configurator
    jupyter nbextensions_configurator enable --user
    

    Second is the key: After opening jupiter notebook, click the Nbextension tab. Now Search "colla" from the searching tool provided by Nbextension(not by the web browser), then you will find something called "Collapsible Headings"

    This is what you want!

提交回复
热议问题