numpydoc Questions

1

Documenting a Python module using the numpy style and generating html documentation using sphinx and the numpydoc extension, I stumbled upon a bug (or feature?) regarding bulleted lists. In reStruc...
Germicide asked 13/7, 2016 at 9:39

3

Solved

I have an open source package with lots of classes over different submodules. All classes have methods fit and transform, and inherit fit_transform from sklearn. All classes have docstrings that fo...
Vonnievonny asked 8/12, 2020 at 12:32

2

I'm using sphinx with the numpydoc extension and autosummary. After some experimentation, I added the following options to my conf.py file. autosummary_generate = True numpydoc_show_class_members ...
Chickenhearted asked 9/7, 2016 at 1:22

2

I am using NumPyDoc-style docstrings to document a Python package. I would like to switch from the 'numpydoc' Sphinx extension to Napoleon, because I find that it formats the docstring in a more co...
Overwrite asked 20/1, 2017 at 11:25

1

Solved

Numpy docstring guide says: The colon must be preceded by a space, or omitted if the type is absent. and gives an example: Parameters ---------- x : type Description of parameter `x`. y Descrip...
Collaboration asked 3/6, 2020 at 7:35

2

Solved

I'm trying to use sphinx (in conjunction with autodoc and numpydoc) to document my module, but after the basic setup, running make html produces just the basic html with nothing from the docstrings...
Wager asked 23/7, 2014 at 8:23

4

I try to use function names that are active and descriptive, which I then document with active and descriptive text (!). This generates redundant-looking code. Simplified (but not so unreali...
Devindevina asked 8/10, 2015 at 15:24

3

Solved

Suppose I have the following function that is documented in the Numpydoc style, and the documentation is auto-generated with the Sphinx autofunction directive: def foo(x, y, _hidden_argument=None)...
Stylograph asked 30/5, 2015 at 5:23

1

I have numpydoc-style docstrings: def foobar(filename, copy, dtype, iterable, shape, files): """ foobar is 42. Parameters ---------- filename : str copy : bool dtype : data-type iterable ...
Rosenberger asked 9/11, 2018 at 7:21

1

I'm using sphinx autodoc extension together with sphinx.ext.napoleon. I'm following numpydoc style guide since I think it is more readable than google's one. However, I've noticed the following iss...
Orchid asked 24/10, 2017 at 15:5

1

Solved

I used the sphinx-quickstart to set everything up. I used doc/ for the documentation root location. The folder containing my package is setup as: myfolder/ doc/ mypackage/ __init__.py moprob.py...
Tumbling asked 19/7, 2017 at 15:46

1

I am writing documentation for a Python project using Numpy-style docstrings. numpydoc and napoleon are two Sphinx extensions that parse Numpy-style docstrings to generate documentation. The...
Dougall asked 19/4, 2016 at 10:33

1

I'm working on a project that requires Numpy documentation. In my Java days, I remember having linters that checked for Javadoc adherence in Eclipse/IDEA; is there an equivalent that checks f...
Toxicant asked 8/2, 2017 at 21:19

1

Solved

I'd like to parse a numpydoc docstring and access each component programatically. For example: def foobar(a, b): '''Something something Parameters ---------- a : int, default: 5 Does someth...
Contiguity asked 20/6, 2016 at 18:56

1

The main question here is where (if) there is an objects.inv for TensorFlow, but an example how to actually use it would be nice. For example, I currently have the following docstring: """ Load t...
Magpie asked 23/5, 2016 at 10:29

1

Solved

I am trying to generate documentation for my python classes using Sphinx 1.4 and sphinx-apidoc and the sphinx.ext.autodoc extension. I have a lot of modules and I want each to only show class name...
Entebbe asked 2/4, 2016 at 0:48

0

I am having trouble getting sphinx to create a summary table for modules. I have added sphinx.ext.autosummary to my conf.py file and I am using numpydoc. Sphinx seems to create the summary table fo...
Arsenious asked 8/4, 2015 at 15:22

1

despite reading this tutorial, this question and the numpy docstring standard, I'm unable to get sphinx autodoc to play nicely with numpy docstrings. In my conf.py I have: extensions = ['sphinx.e...
Brucite asked 2/12, 2013 at 17:59
1

© 2022 - 2024 — McMap. All rights reserved.