Message Boards Message Boards

0
|
1990 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Add Help description to a Function

You can describe a Python function in words by putting triple quotes at the top, so that appears in Help. Is there a way to do that in Mathematica?

POSTED BY: James Mooney
Posted 1 year ago

You can add comments anywhere. You can also create usage messages for your functions.

(* comments are enclosed in these kinds of braces*)
MyFunction::usage = "This is how to define a usage message for MyFunction"

You can see the usage message with Information (for example):

Information[MyFunction]
POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract