[IPython-dev] Bug in our magic_arguments decorator for building docstrings (ping R. Kern)?

Hans Meine hans_meine@gmx....
Tue Sep 4 07:52:57 CDT 2012


Am Dienstag, 5. Juni 2012, 14:00:51 schrieb Fernando Perez:
> On Tue, Jun 5, 2012 at 1:57 PM, Robert Kern <robert.kern@gmail.com> wrote:
> > We probably want to use the RawDescriptionHelpFormatter:
> > 
> > 
http://docs.python.org/library/argparse#argparse.RawDescriptionHelpFormatter
> > 
> > Or a custom implementation that removes the leading indentation but
> > otherwise leaves the line breaks and indents alone.
> 
> Great, thanks for tracking down at least a path to a solution.
> 
> If anyone has the bandwidth to whip out a fix for this, we'd be very
> very grateful.  Right now the docs for any magic with more than one
> line docstring that uses the argparse decorators is completely
> unreadable, so the karma-to-effort ratio of this one is huge.

Has this been fixed, or is there a GH issue for this problem?

Best, Hans


More information about the IPython-dev mailing list