Question: 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

Answer: 
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, Outline 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
There were already bugfixing attempts going on at [GitHub](https://github.com/spyder-ide/spyder/issues/15139)
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.