Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to make Eclipse+PyDev display function documentation like Python's help() would? [duplicate]

I would like to force Eclipse to show Python's help output in the popup instead of the whole function, i.e. given:

def myFunc(arg):
    '''Function description'''
    return 1

I would like the code assist popup to contain only "Function description" and not "return 1"

like image 842
zmk Avatar asked Aug 12 '11 01:08

zmk


People also ask

Can you use Python in Eclipse?

Running Python from within Eclipsepy, and Eclipse will recognize it as Python code. Type in some Python code (for instance: print 2+2 ), then right-click on the Python file you've created and select Run As >> Python run . You should see the output of your Python code in the console at the bottom of the Eclipse window.

How do I create a Python project in PyDev?

Create a new projectGo to File → New → PyDev Project to start a wizard. In the next window that appears, enter the name of your project and select "python" and 3.0"; as the type. Make sure "create default 'src' folder and add it to the pythonpath?" is selected. Click Finish.


1 Answers

Try ticking 'Show docstrings?' in 'Window -> Preferences -> Pydev -> Editor -> Hover'.

like image 81
yuwang Avatar answered Sep 20 '22 00:09

yuwang