[IPython-dev] Docstrings for magic functions
Sun Jun 19 13:02:14 CDT 2011
On 19 June 2011 17:09, Arnaud Gardelein <firstname.lastname@example.org> wrote:
> I'm Arnaud, new to this mailing list but using ipython since a little
> more than a year now. I really like IPython features and decided to
> write an application on top of it, oscopy, a kind of oscilloscope to
> view electrical simulation results (oscopy.org).
> It consist of a framework and an application that use heavily magic
> functions to facilitate the access to framework functions. I have
> documented those functions with docstrings, that can be displayed by
> typing %magic_name?, for the user it would be simpler to use 'help
> magic_name'. For instance I have tried to do 'help lsmagic' but of
> course lsmagic is not defined in global scope.
> Is there a way have this working ?
You can already call 'pinfo lsmagic', which works as you'd describe. pinfo
is short for print information. If magic calls are very important to your
application, it should be possible for you to make 'help' an alias for
pinfo. Then again, I prefer to type 'lsmagic?' rather than 'help lsmagic'.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev