How to get nicely formatted documentation in python
<p>I'm an R user and I'm just moving to Python for data analysis.  </p>

<p>What I'm looking for is a way to pull documentation for any python object (classes, modules, functions...) in a nice-looking, HTML-ish formatted way instead of the output I get when typing <code>help(...)</code>, just like what I would obtain in Rstudio.  </p>

<p>For example, if I type <code>help(matplotlib.pyplot.fill_betweenx)</code> in a <code>jupyter notebook</code> or in an <code>IPython</code> shell, an extract of the output I get is the following:  </p>

<p><a href="http://i.stack.imgur.com/glejK.png" rel="nofollow"><img src="http://i.stack.imgur.com/glejK.png" alt="enter image description here"></a></p>

<p>Instead, it would be great to have an output as the one in the "online version" of the <code>matplotlib</code> documentation (<a href="http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.fill_betweenx" rel="nofollow">link</a>), even if it would mean opening a new tab in the browser (just look at the example plots in the online version of the documentation: it would be of great help to see them instead of just having the <code>Examples</code> string I get when calling <code>help()</code>).</p>

<p>I saw that someone suggested using the <code>pydoc</code> module, but it doesn't work on my machine for some reason (Windows 10 with Anaconda)</p>

<p>You might want to check out <a href="http://www.stack.nl/~dimitri/doxygen/" rel="nofollow">DoxyGen</a> - It supports automatic documentation generation for Python with outputs in, among other formats, HTML.</p>

<p>It doesn't provide quite the interface you're looking for, but may still be useful to you.</p>

python formatting documentation