'Outline Explorer Spyder 5 does not show the modules, cells and so on
I updated Spyder to the version 5 on Linux Mint 20. The outline panel won't show modules, code cells etc. It used to work with Spyder4. Spyder3 shows outlines of the same scripts. Do you know how resolve this?
Thank you in advance
Solution 1:[1]
I had the same problem, outline showed no structure.
Spyder 5 was being really slow as I was editing. I worked out it was the completion and linting churning away as I was typing so I started turning features off. I turned it all off and the outline stopped working. So I resent and went about turning things off systematically.
Finally got a responsive Spyder and outline workign with just "Enable basic linting" and "Enable code completion and basic linting in the editor" turned on
Solution 2:[2]
I've had the same problem in which the outline doesn't show anything except the comments that start with four ####.
I found the solution digging in the github and after I tried it, Outlone panel worked like a charm:
Just make sure to have a __init__.py file in the location of the script or file you'r working with. It can be empty, but it needs to be present. After that, the outline started to show all the functions, cells, classes, etc.
I cant remember if I needed to restart Spyder (I don't think so) but at least give it a restart if the __init__ file doesn't solve the issue.
Good luck
Solution 3:[3]
There were already bugfixing attempts going on at GitHub and it seemed as if the root cause had been on Kite and the problem resolved on Spyder v5.0.2. Whereas in my understanding it came back in v5.0.3 in which I also experienced it.
Downgrading Spyder to v4.2.5 via
conda install spyder=4.2.5
helped in my case.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | monkey |
| Solution 2 | Aevr |
| Solution 3 | stack4science |
