Skip to content

Numpy Docstrings look bad, how can I improve it? #564

Closed Answered by pawamoy
nh916 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks a lot, that's what I needed to see.

So, the only difference I see is that Google docstrings support arbitrary admonitions (in this case: Example), while Numpy docstrings do not. If you look at the table of supported sections per style, you'll see that both style expect "Examples" (plural). With the Google-style, "Example" (singular) falls back to being parsed as an admonition. With the Numpy style, which does not support arbitrary admonitions, it falls back as being parsed as a text block, which is then rendered as Markdown, and therefore as a heading (hence the small, grey "Example" heading in your screenshot).

We're open to adding support for arbitrary admonitions with the Numpy …

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pawamoy
Comment options

Answer selected by pawamoy
Comment options

You must be logged in to vote
3 replies
@pawamoy
Comment options

@nh916
Comment options

@pawamoy
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants