Help for Python Functions

For a complete description of Python® functionality, consult outside resources, in particular, python.org. There are different versions of the Python documentation, so be sure to refer to the version corresponding to the version on your system. Many examples in the MATLAB® documentation refer to functions in the Python standard library.

To use functions in a third-party or user-defined Python module, refer to your vendor product documentation for information about how to install the module and for details about its functionality.

The py.help command displays the Python help found at www.python.org/doc. Help for packages and classes can be extensive and might not be useful when displayed in the MATLAB command window.

  • Package

    py.help('textwrap')
  • Class

    py.help('textwrap.TextWrapper')
  • Method of a class

    py.help('textwrap.TextWrapper.wrap')
  • Function

    py.help('textwrap.fill')

If MATLAB displays an error message beginning with Python Error:, refer to your Python documentation for more information.

Note

You cannot use the interactive Python help, calling py.help without input arguments, in MATLAB.

Related Topics

External Websites