There isn't currently a way to do custom code folding sections or folding on cells. The code folding is only on indentation levels.
You may find the outline explorer more convenient for code navigation than code folding. It works quite nicely with code cells. On Sat, May 2, 2020, 9:22 AM Pratik Samant <[email protected]> wrote: > I am trying to structure a long module by folding codes, but have not been > able to figure out how to fold sections of code. That being said, Spyder > automatically allows me the option to fold *some* of my function > definitions but not all. How does Spyder decide when to offer code folding? > Can I manually put in a fold? If so, how? Is it possible to fold entire > cells? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "spyder" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/spyderlib/eb42fd09-b792-4dc7-bca8-f1d46605ac60%40googlegroups.com > <https://groups.google.com/d/msgid/spyderlib/eb42fd09-b792-4dc7-bca8-f1d46605ac60%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/CACx0QwOvyv2F_UQjx_OuLntNLxNfHX7cXJ76OfyWCmSuMXUBBQ%40mail.gmail.com.
