How to display docstring output for function with multiple methods? #3103
-
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.
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
It still works without the explicit |
Beta Was this translation helpful? Give feedback.
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.