MCPcopy Create free account
hub / github.com/ipython/ipython / append_field

Method append_field

IPython/core/oinspect.py:593–598  ·  view source on GitHub ↗
(bundle, title:str, key:str, formatter=None)

Source from the content-addressed store, hash-verified

591 }
592
593 def append_field(bundle, title:str, key:str, formatter=None):
594 field = info[key]
595 if field is not None:
596 formatted_field = self._mime_format(field, formatter)
597 bundle['text/plain'].append((title, formatted_field['text/plain']))
598 bundle['text/html'] += '<h1>' + title + '</h1>\n' + formatted_field['text/html'] + '\n'
599
600 def code_formatter(text):
601 return {

Callers

nothing calls this directly

Calls 1

_mime_formatMethod · 0.95

Tested by

no test coverage detected