question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder code folding not working on 4.1.5

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Code folder does not work. It shows an extra column but the option to fold does not appear. Attempted this solution but does not work. Created a new issue to not open up the old one.

What steps reproduce the problem?

  1. Install conda
  2. conda install spyder==4.1.5

What is the expected output? What do you see instead?

I expect to see code folding options. It was working in a previous iteration of spyder.

Versions

  • Spyder version: 4.1.5
  • Python version: 3.7.6
  • Qt version: 5.9.7
  • PyQt version: 5.9.2
  • Operating System name/version: Ubuntu 16.04

Dependencies

Mandatory:

atomicwrites >=1.2.0 : 1.3.0 (OK) chardet >=2.0.0 : 3.0.4 (OK) cloudpickle >=0.5.0 : 1.2.2 (OK) diff_match_patch >=20181111 : 20181111 (OK) intervaltree : None (OK) IPython >=4.0 : 7.11.1 (OK) jedi =0.17.1 : 0.17.1 (OK) keyring : None (OK) nbconvert >=4.0 : 5.6.1 (OK) numpydoc >=0.6.0 : 0.9.2 (OK) parso =0.7.0 : 0.7.0 (OK) pexpect >=4.4.0 : 4.7.0 (OK) pickleshare >=0.4 : 0.7.5 (OK) psutil >=5.3 : 5.6.7 (OK) pygments >=2.0 : 2.5.2 (OK) pylint >=1.0 : 2.4.4 (OK) pyls >=0.34.0;<1.0.0 : 0.35.1 (OK) qdarkstyle >=2.8 : 2.8.1 (OK) qtawesome >=0.5.7 : 0.6.1 (OK) qtconsole >=4.6.0 : 4.6.0 (OK) qtpy >=1.5.0 : 1.9.0 (OK) rtree >=0.8.3 : 0.9.4 (OK) sphinx >=0.6.6 : 2.3.1 (OK) spyder_kernels >=1.9.4;<1.10.0 : 1.9.4 (OK) watchdog : None (OK) xdg >=0.26 : 0.26 (OK) zmq >=17 : 18.1.1 (OK)

Optional:

cython >=0.21 : 0.29.16 (OK) matplotlib >=2.0.0 : 3.1.2 (OK) numpy >=1.7 : 1.18.1 (OK) pandas >=0.13.1 : 1.0.3 (OK) scipy >=0.17.0 : 1.4.1 (OK) sympy >=0.7.3 : None (OK)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rodrigovimieirocommented, Mar 17, 2021

I had the same problem and solved it by upgrading toml package from 0.10.0 to 0.10.2. Found this problem through debug information @ccordoba12 suggested.

I am on spyder 4.2.3 and Ubuntu 20.04

1reaction
RSKotharicommented, Nov 30, 2020

@ccordoba12 This fixed the issue, thanks a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling folds in Spyder - python - Stack Overflow
I have 4.1.5 and it there is no folding in my .py files, Preferences | Editor | Show code folding is enabled. Update:...
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 >
How does code folding work in 4.1.2? - Google Groups
The code folding is only on indentation levels. You may find the outline explorer more convenient for code navigation than code folding. It...
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 >
Spyder - freshcode.club
Please be patient until then and do not report it as a problem because we don't have any control over that. . If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found