Handling folds in Spyder

abunickabhi picture abunickabhi · Sep 18, 2018 · Viewed 15.2k times · Source

I am coming from a VScode background , and for my recent project (on Deep Learning) I am having to manage huge code files in Spyder (Version 3), and I am not seeing any option of code folding?

I am not willing to switch to another IDE , as Spyder is very productive for my project.

Please suggest any hack to do it , if it is not there in the Spyder codebase.

Answer

Carlos Cordoba picture Carlos Cordoba · Sep 18, 2018

(Spyder maintainer here) You can install the first beta of Spyder 4 to get code folding.

If you use Anaconda, you need to use the following commands:

conda update anaconda

conda update spyder

or if you use pip, then you need to run

pip install -U --pre spyder

This beta is quite stable and it has been tested for more than a year.