collapse cell in jupyter notebook

前端 未结 12 1300
长发绾君心
长发绾君心 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条回答
  •  Happy的楠姐
    2020-12-22 17:17

    I had a similar issue and the "nbextensions" pointed out by @Energya worked very well and effortlessly. The install instructions are straight forward (I tried with anaconda on Windows) for the notebook extensions and for their configurator.

    That said, I would like to add that the following extensions should be of interest.

    • Hide Input | This extension allows hiding of an individual codecell in a notebook. This can be achieved by clicking on the toolbar button:

    • Collapsible Headings | Allows notebook to have collapsible sections, separated by headings

    • Codefolding | This has been mentioned but I add it for completeness

提交回复
热议问题