Readthedocs
sphinxcontrib-napoleon.readthedocs.io › en › latest › example_numpy.html
Example NumPy Style Python Docstrings — napoleon 0.7 documentation
Attributes ---------- module_level_variable1 : int Module level variables may be documented in either the ``Attributes`` section of the module docstring, or in an inline docstring immediately following the variable. Either form is acceptable, but the two should not be mixed. Choose one convention to document module level variables and be consistent with it. .. _NumPy Documentation HOWTO: https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt """ module_level_variable1 = 12345 module_level_variable2 = 98765 """int: Module level variable documented inline.
GitHub
github.com › numpy › numpy › tree › main › doc
numpy/doc at main · numpy/numpy
EXAMPLE_DOCSTRING.rst · EXAMPLE_DOCSTRING.rst · HOWTO_DOCUMENT.rst · HOWTO_DOCUMENT.rst · HOWTO_RELEASE.rst · HOWTO_RELEASE.rst · Makefile · Makefile · RELEASE_WALKTHROUGH.rst · RELEASE_WALKTHROUGH.rst · TESTS.rst · TESTS.rst · conftest.py · conftest.py ·
Author: numpy
Starred by 51 users
Forked by 8 users
Languages: Emacs Lisp
Python-sprints
python-sprints.github.io › pandas › guide › pandas_docstring.html
pandas docstring guide — Python documentation
Parameters ---------- num1 : int ... another Examples -------- >>> add(2, 2) 4 >>> add(25, 0) 25 >>> add(10, -10) 0 """ return num1 + num2 · Some standards exist about docstrings, so they are easier to read, and they can be exported to other formats such as html or pdf. The first conventions every Python docstring should follow are defined in PEP-257. As PEP-257 is quite open, and some other standards exist on top of it. In the case of pandas, the numpy docstring ...
Readthedocs
numpydoc.readthedocs.io › en › latest › example.html
Example — numpydoc v1.11.0rc0.dev0 Manual - Read the Docs
If your docstring does extend over multiple lines, the closing three quotation marks must be on a line by itself, preferably preceded by a blank line. """ import os # standard library imports first # Do NOT import using *, e.g. from numpy import * # # Import the module using # # import numpy ...
Starred by 352 users
Forked by 177 users
Languages: Python 99.9% | Makefile 0.1%
GitHub
github.com › alimanfoo › numpydoc_decorator
GitHub - alimanfoo/numpydoc_decorator: Build numpy-style docstrings programmatically and apply them using a decorator. · GitHub
Type information for parameters and return values is automatically picked up from type annotations and added to the docstring, avoiding the need to maintain type information in two places. ... from numpydoc_decorator import doc @doc( summary="Say hello to someone.", extended_summary=""" Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Author: alimanfoo
Mkdocstrings
mkdocstrings.github.io › python › usage › docstrings › numpy
Numpy - mkdocstrings-python
As Numpy-style is partially supported by the underlying parser, you may experience problems in the building process if your docstring has a Methods section in the class docstring (see #366).
Readthedocs
numpydoc.readthedocs.io › en › latest › format.html
Style guide — numpydoc v1.11.1.dev1+gca74aae44 Manual
This document describes the syntax and best practices for docstrings used with the numpydoc extension for Sphinx. ... For an accompanying example, see example.py. Some features described in this document require a recent version of numpydoc. For example, the Yields section was added in numpydoc 0.6. We mostly follow the standard Python ...
GitHub
github.com › lsst-dm › dm_dev_guide › blob › main › python › numpydoc.rst
dm_dev_guide/python/numpydoc.rst at main · lsst-dm/dm_dev_guide
Instead, include type information in the summary, as is done for :ref:`class attributes <py-docstring-attribute-constants-structure>`. Only document the property's "getter" method, not the "setter" (if present). If a property does not have a "setter" method, include the words read-only after the type information. .. literalinclude:: examples/numpydocExample.py :language: python
Author: lsst-dm
GitHub
gist.github.com › marcosfelt › 39572fb8a685608a4894d7f74d78dc61
VS Code Numpy Docstring · GitHub
This VS Code snippet will insert a numpy docstring into python code.
Lsst
developer.lsst.io › python › numpydoc.html
Documenting Python APIs with docstrings — LSST DM Developer Guide main documentation
For example, the description for format references the should_plot parameter: Parameters ---------- should_plot : `bool` Plot the fit if `True`. plot_format : `str`, optional Format of the plot when ``should_plot`` is `True`. We organize Python docstrings into sections that appear in a common order. This format is based on the original Numpydoc Style Guide (used by NumPy, SciPy, and Astropy, among other scientific Python packages), though this style guide includes several DM-specific clarifications.
PyPI
pypi.org › project › numpydoc
numpydoc · PyPI
The numpydoc docstring guide explains how to write docs formatted for this extension, and the user guide explains how to use it with Sphinx. ... Data provided by the project maintainers, verified at the time the release was uploaded to PyPI. ... Data sourced directly from PyPI's database. ... Data sourced directly from PyPI's database. ... Data sourced directly from PyPI's database. ... The GitHub ...
NumPy
numpy.org › doc › 1.19 › docs › howto_document.html
A Guide to NumPy/SciPy Documentation — NumPy v1.19 Manual
This document describes the syntax and best practices for docstrings used with the numpydoc extension for Sphinx. ... For an accompanying example, see example.py. Some features described in this document require a recent version of numpydoc. For example, the Yields section was added in numpydoc 0.6. We mostly follow the standard Python ...