[IPython-dev] Odd problem with dynamically generated function in IPython notebook

Stephen Chan sychan at lbl.gov
Tue Apr 15 19:50:02 EDT 2014


Hello,
   I'm generating some helper functions dynamically and setting the
docstrings via assignment to the __doc__ attribute of the helper function.
In the command line, the interpreter seems to recognize the docstring
properly and displays it, but in the notebook, the docstring is not being
returned by the UI, even though you can see it when you check the attribute
directly.

   Any ideas?

   Steve
[image: Inline image 1]

[image: Inline image 2]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140415/81358406/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2014-04-15 at 4.46.03 PM.png
Type: image/png
Size: 21053 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140415/81358406/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2014-04-15 at 4.49.37 PM.png
Type: image/png
Size: 18801 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140415/81358406/attachment-0001.png>


More information about the IPython-dev mailing list