While browsing through a really long code it would be awesome to be able to collapse code with a button, and also a collapse all function feature if it doesn't exist, I am not aware if it does
You mean code folding? there is work on way and if so, this is then a duplicate ...
Yes, having a small plus icon on the place where we show line numbers, plus a keyboard shortcut to fold all functions and classes
Is ANY one working on code folding? I've been using spyder for 2 years and this NEEDS TO EXIST
Yes, one of our juniors is working on it. It'll be present in Spyder 4 (to be released in August of next year :-) because we need to refactor and rewrite several parts of the Editor.
But it'll probably land in master before the end of this year :-)
A code editor without code folding is only good for small projects. This should be given a higher priority if you ask me.
Thanks for listening anyways.
It's already implemented and it'll be released in Spyder 4.
Hi Carlos, thanks for the quick reply. Is there a way to become a beta or alpha tester and have access to Spyder 4 without waiting for the official release? I could really use it. By the way, I didn't meant to be rude with my previous comment, it’s just that I'm in the process of switching from Matlab to Python, and after a relatively thorough search and analysis of most popular Python IDEs, Spyder was the best I could find for Scientific applications. I started using it, but soon notice how important code folding is, and how accustom I was to it (most programmer probably are). I really try to live without it, but couldn’t. Right now I’m using PyDev, but I haven’t use it much. If I could get my hand on Spyder 4 it will be great. Otherwise, I’m afraid by the time it is officially out, I’ll be already accustomed to PyDev and never take the time to switch to Spyder. Probably there are many people in similar situations. Thank for your attention to this.
Regards.
Max.
I use the outliner and the file switcher to navigate longish scripts and haven't really missed code folding that much, although I'm sure it will be useful once it's there. The outliner gives you a decent bird's eye view of the structure of the code and allows you to jump to cells, functions, loops, etc. The file switcher lets you switch between files and parts of files. They might help you bridge the time left until version 4 is released.
I'll try that. Thanks.
On Mon, May 1, 2017, 2:27 AM Gershom Tripp notifications@github.com wrote:
I use the outliner and the file switcher to navigate longish scripts and
haven't really missed code folding that much, although I'm sure it will be
useful once it's there. The outliner gives you a decent bird's eye view of
the structure of the code and allows you to jump to cells, functions,
loops, etc. The file switcher lets you switch between files and parts of
files. They might help you bridge the time left until version 4 is released.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/2430#issuecomment-298304457,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZ6ndRoIKM2JWK13cFXRVaFv5e6WgN6zks5r1ZdTgaJpZM4EUXLl
.
As GershTri suggested to use outliner, some may find useful to use triple hash - ### to make links in outliner to just some particular point in code. Outline pane updates, when you save the script file.
someone had said above spyder 4 will release in aug 2017 with code folding. Is spyder 4 out?
Nop. It'll be released in June of next year.
El 13/11/17 a las 13:58, nimishbansal escribió:
>
someone had said above spyder 4 will release in aug 2017 with code
folding. Is spyder 4 out?—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/2430#issuecomment-344021232,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWS7VutrlPJJCMxYZVoGDEAmN-8YWotks5s2JFkgaJpZM4EUXLl.
omg is there no other way that I could run before release?
Agreed with all above. No collapsible regions will only make due for small projects. So Spyder IV is set for a few months from now?
One year, if things go well.
If :)
Does Spyder 4 work together with Python 2.7 or is the Python version irrelevant to the Spyder version? Code folding would be a great feature I agree.
Yes, Spyder 4 will be compatible with Python 2.
I love spyder but deeply upsetting that 3.5+ years after this was first mentioned in this post, we still do not seem to have a solution for this.
I understand that it is a free software and so grateful of all the effort behind it, but it gets to a point where one wonders how such an integral feature can be missing.
we still do not seem to have a solution for this
There's a solution already, it was implemented a year and a half ago and it'll be part of Spyder 4, to be released next year.
You can install our first beta, which already has it:
Spyder 4, is never released. Seriously! I tried installing spyder 4.0.0b version which is completely a failure each time. It dosen't even connect to kernel. and lots of other stuff......
I don't get any installation guides too....
I found all installation guides which is not a right way to install it completely.
Can you write a blog/ suggest which way of installing, installs it better?
@skviknesh I'm using version 4.0.0.dev0, which is working OK, but it can be improved.
Spyder 4, is never released. Seriously! I tried installing spyder 4.0.0b version which is completely a failure each time. It dosen't even connect to kernel. and lots of other stuff......
I don't get any installation guides too....
I found all installation guides which is not a right way to install it completely.
Can you write a blog/ suggest which way of installing, installs it better?
I have updated after the new release, now its really cool! right now, i have 4.0.1
I am running 4.0.1, downloaded through conda, and it's working well. However, I still cannot collapse cells! only loops.
Same here, any news on when will a manual selection of lines of code be collapsable?
Collapsing blocks of comments and regions/cells is something very essential, which I hope we seen soon in the next release!
This was already implemented in Spyder 4 and it's been available since December 2019.
However, code folding markers are hidden by default due to performance reasons (and it's not possible to change that). This is the same behavior used in other editors and IDEs, e.g. VSCode.
To show those markers, you need to hover the mouse to the left of your code, as is displayed below.
Most helpful comment
Yes, one of our juniors is working on it. It'll be present in Spyder 4 (to be released in August of next year :-) because we need to refactor and rewrite several parts of the Editor.
But it'll probably land in master before the end of this year :-)