1

I use Spyder and for example numpy. Then, when I use some function, like np.interp(), object inspector gives me help about this function. How to put documentation into my modules which will be displayed in Spyder's object inspector?

1 Answer 1

2

That would be python documentation comments:

"""
This module contains methods and classes
"""

class class_:
    """
    This class is well... a class
    """
    def method(self, in_):
        """
        This method takes one argument: in_ and returns it
        """
        return in_
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.