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

Method write_format_data

IPython/terminal/prompts.py:99–107  ·  view source on GitHub ↗
(self, format_dict, md_dict=None)

Source from the content-addressed store, hash-verified

97 sys.stdout.write(prompt_txt)
98
99 def write_format_data(self, format_dict, md_dict=None) -> None:
100 if self.shell.mime_renderers:
101
102 for mime, handler in self.shell.mime_renderers.items():
103 if mime in format_dict:
104 handler(format_dict[mime], None)
105 return
106
107 super().write_format_data(format_dict, md_dict)
108

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected