In order to fold the code written in Jupyter, you need to add Nbextensions as an add-on, but it takes some time, so make a note of how to do it. In addition, here I am writing how to do it on Windows.
(1) Open Anaconda Prompt.
(2) Install Nbextensions. Enter the following in Anaconda Prompt.
python
jupyter contrib nbextension install --user
(3) After the installation is complete, check that "Nb extensions" is added to the "Jupyter" menu. After confirmation, click "Nbextensions" to open the Config screen.
(4) Check "Code folding" on the "Nb extensions" screen. Make it the same as the capture diagram below.
(5) When you open the code, you can fold it. (If you can't fold it, quit jupyter and start it again.)
Recommended Posts