MCPcopy Index your code
hub / github.com/ipython/ipython / sphinxify

Function sphinxify

IPython/core/interactiveshell.py:107–117  ·  view source on GitHub ↗
(oinfo)

Source from the content-addressed store, hash-verified

105 import docrepr.sphinxify as sphx
106
107 def sphinxify(oinfo):
108 wrapped_docstring = sphx.wrap_main_docstring(oinfo)
109
110 def sphinxify_docstring(docstring):
111 with TemporaryDirectory() as dirname:
112 return {
113 "text/html": sphx.sphinxify(wrapped_docstring, dirname),
114 "text/plain": docstring,
115 }
116
117 return sphinxify_docstring
118except ImportError:
119 sphinxify = None
120

Callers 2

_inspectMethod · 0.85
object_inspect_mimeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…