Now ipython notebook could easily hide the output part of a cell by double clicking the left margin of the output. But I havn't figure out a way to hide the whole cell content.
To collapse the heading, use the triangle on the left of the markdown cell.
This extension adds codefolding functionality from CodeMirror to a codecell. In edit mode, clicking on the triangle in the gutter (left margin of codecell) or typing the codefolding hotkey (default is Alt+F ), folds the code. In command mode, the folding hotkey relates to the first line of the codecell.
Not sure if this is still relevant but the following code folding extension may help:
https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/Codefolding
If you are running juptyter, then this is relevant: collapse cell in jupyter notebook
In my case, I like the hide_cost extension. Install as
pip3 install hide_code
Visit https://github.com/kirbs-/hide_code/ for more info about this extension.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With