[IPython-dev] Less metadata for inspect_request messages?

Carlos Córdoba ccordoba12 at gmail.com
Fri Oct 24 13:35:13 EDT 2014


Hi,

I just noticed that the content of inspect_request messages has lost 
some metadata we use in Spyder to improve how qtconsole tooltips are 
shown. Besides, I also would like to use this metadata in the future, to 
improve how documentation is shown in our Sphinx renderer. The idea is 
to add class and constructor docstrings to an object's docstring, but 
shown in different bootstrap tabs.

What I mean exactly is this: In IPython 2, the content key of inspect 
messages give:

In [7]: request['content'].keys()
Out[7]:
[u'base_class',
  u'init_definition',
  u'isalias',
  u'name',
  u'isclass',
  u'init_docstring',
  u'type_name',
  u'namespace',
  u'length',
  u'source',
  u'argspec',
  u'call_def',
  u'ismagic',
  u'file',
  u'string_form',
  u'found',
  u'class_docstring',
  u'definition',
  u'docstring',
  u'call_docstring']

Whereas In IPython 3.0dev it gives:

In [5]: request['content'].keys()
Out[5]: [u'status', u'found', u'data', u'metadata']

and 'data' contains contains just the docstring but without all the rich 
information it was exposed before.

Is it possible that you guys expose this metadata again?

Thanks,
Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141024/a8e49d4d/attachment.html>


More information about the IPython-dev mailing list