Help text for python functions

I have some custom utility script in python and my question is how to create help description for them in Python editor.

Example:
Help on function Infinite in module sweep_utility:

  • | Infinite()*

Hello,

If you define a docstring in your function like this :
image

Then when you type it in a separate script you will see the docstring in the rhino python editor.
image

You can also access the docstring by typing help(sweep_utility.infinite)

image

1 Like