Pycharm documentation can't be displayed

Answered

Hi, 

 

I am using pycharm professional edition and have problems with documentation display. When I press the shortcut key, I get this message `You need configured Python SDK to render docstrings`.

 

I am using remote python interpreter using ssh. I am not sure what it means to setup SDK properly. I searched a lot for any help regarding this but couldn't find anything


Thanks

0
5 comments

Please take a look at https://youtrack.jetbrains.com/issue/PY-18329#comment=27-1568906. So you need a configured local python interpreter to display them (not necessarily the one you use in the project).

1

Hi Team,

I think this issue needs further investigation. 
I'm using Pycharm on Windows connected to a remote WSL environment. I have set up a python interpreter on WSL, and the default project interpreter is on Docker Compose.

How can I configure a local SDK? 

When I go to Settings > Project > Python interpreter > Add interpreter, the only options I can choose from are 'On WSL', 'On Docker' and 'On Docker Compose'.

There is no option for a local SDK.

0

Hello 

 

The local interpreter is not available for projects inside WSL, this is usability issue which is reported https://youtrack.jetbrains.com/issue/PY-57827 please follow for updates. 

I apologize for the inconvenience. 

0

This is still an issue. 

But I found a workaround that's quite easy:

  • Create a new project, which is not in WSL but in a normal Windows folder
  • Configure a local interpreter for the project
  • Rendering of docstrings start working again, also for other projects which are in WSL.
6

thank you, Corneyl. It works. 

A bit annoyed that I don't understand why and how… but it works. 

WSL projects would not even see the interpreter defined in windows hosted project, but docstrings are working. 

It feels like magic, but in the background might be a buggy “feature”.
I don't even want to think about possibilities in which I get outdated docstrings from a different interpreter, because of this thing.

0

Please sign in to leave a comment.