'PyDev and Eclipse - Is there any way to show the functions documentation when hovering it?
Solution 1:[1]
It usually does show it... the problem is that in this particular case the type inference engine is not finding the docstring -- i.e.: it seems random.randint just as an assign to Random._randint and is not following it.
In this particular case you can ask to get completions for random by introspecting it with a shell instead of using the static analysis type inference.
You can do that by adding random to the Forced Builtins as explained in: https://www.pydev.org/manual_101_interpreter.html#PyDevInterpreterConfiguration-ForcedBuiltins
i.e.: by doing that it shows the following for me (note that when it can, the hover shows not only the docstring but also the source code, which provides the signature as well as the docstring):
Solution 2:[2]
I encountered this same problem today, and was able to fix it on the Window --> Preferences --> PyDev --> Editor --> Hover screen. On that screen I chose the radio button for Combine Hovers, and after applying that change, I got pop-up info when hovering over variables/functions both defined within my script and defined in imported modules.
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 | Fabio Zadrozny |
| Solution 2 | jLGawtrox |



