How to display docstring output for function with multiple methods? #3103
Answered
by
fonsp
nathanrboyer
asked this question in
Questions about using Pluto
-
I like the feature where a function defined in a cell shows its docstring as the output. However, I am having trouble getting that to work when multiple methods are required. The Pluto FAQ says to write multiple methods in a begin-end block, but then I get no output. Contrary to the FAQ information, the method definitions seem to work okay in separate cells, but then I get a second output. I can suppress the second output with |
Beta Was this translation helpful? Give feedback.
Answered by
fonsp
Nov 25, 2024
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nathanrboyer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! There is no obvious way to do it, but this what I do:
Maybe you could also write your own macro? But docstrings are a bit tricky to work with in macros.