# How to view the docstring of a function quickly
# https://www.python.org/dev/peps/pep-0257/

### View the docstring of a function
$print repr(foo.__doc__)  # e.g. print repr(matplotlib.pyplot.plt.__doc__)

### Split the lines
$foo.__doc__.splitlines()  # e.g. matplotlib.pyplot.plt.__doc__.splitlines()

### Trim any unnecessary lines - basically do this for best formatting
$trim(foo.__doc__)