Code doesn't fold in Spyder 4.1.5
See original GitHub issueProblem Description
Code folding doesn’t work at all in my Spyder 4.1.5. I know there have been these issues in the prev versions of Spyder but to me it happens with the latest version.
I assume this might have something to do with the fact that I use working PC, where some Spyder elements might not be available:
On my personal PC code folding works fine. I’d still expect code folding should work on my working PC as well.
What steps reproduce the problem?
What is the expected output? What do you see instead?
The code should fold.
Paste Traceback/Error Below (if applicable)
QProcess: Destroyed while process ("C:\\Users\\KolmanM\\AppData\\Local\\Continuum\\anaconda3\\python.exe") is still running.
QTextCursor::setPosition: Position '-1' out of range
QTextCursor::setPosition: Position '-1' out of range
QTextCursor::setPosition: Position '-1' out of range
QTextCursor::setPosition: Position '-1' out of range
Versions
- Spyder version: 4.1.5
- Python version: 3.7.8
- Qt version: 5.9.7
- PyQt version: 5.9.2
- Operating System name/version: Windows 10
Dependencies
# Mandatory:
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.6.0 (OK)
diff_match_patch >=20181111 : 20200713 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.18.1 (OK)
jedi =0.17.1 : 0.17.1 (OK)
nbconvert >=4.0 : None (OK)
numpydoc >=0.6.0 : 1.1.0 (OK)
paramiko >=2.4.0 : 2.7.2 (OK)
parso =0.7.0 : 0.7.0 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.7.2 (OK)
pygments >=2.0 : 2.6.1 (OK)
pylint >=1.0 : 2.6.0 (OK)
pyls >=0.34.0;<1.0.0 : None (OK)
qdarkstyle >=2.8 : 2.8.1 (OK)
qtawesome >=0.5.7 : 0.7.2 (OK)
qtconsole >=4.6.0 : 4.7.7 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
rtree >=0.8.3 : 0.9.4 (OK)
sphinx >=0.6.6 : 3.2.1 (OK)
spyder_kernels >=1.9.4;<1.10.0 : 1.9.4 (OK)
watchdog : None (OK)
zmq >=17 : 19.0.2 (OK)
# Optional:
cython >=0.21 : 0.29.21 (OK)
matplotlib >=2.0.0 : 3.3.1 (OK)
numpy >=1.7 : 1.18.5 (OK)
pandas >=0.13.1 : 1.1.1 (OK)
scipy >=0.17.0 : 1.5.2 (OK)
sympy >=0.7.3 : 1.6.2 (OK)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How can I activate code folding in spyder 4.0.1 when there is ...
(Spyder maintainer here) Code folding doesn't require any special option to be activated. However, there were several problems related to ...
Read more >Spyder: How do I use the code folding feature? - Reddit
I have the "show code folding" enabled, but I don't know how to create sections that will fold. It should automatically add folding...
Read more >Home — Spyder IDE
Spyder is a free and open source scientific environment written in Python, for Python, and designed by and for scientists, engineers and data...
Read more >spyder-ide/public - Gitter
I have been using spyder 4.xxx for over a year, and just discovered that 'code folding' is available...but i can't figure out how...
Read more >Using the Spyder IDE - ENV 859 - Geospatial Data Analytics
Up to now, we wrote Python code in a Jupyter Notebook. ... That's Python alright, but right now the computer doesn't recognize it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you. I had the package installed, so I removed and installed again. After I reinstalled that package, I could see that package in Spyder dependencies but it still didn’t work. What I did afterwards is that I enabled this:
Not sure exactly what it does but now all runs fine. It might have something to do with the working PC config (ports blocked or so).
Since I didn’t want to re-open a previous issue, I’m facing similar issue here.