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

Method log_output

IPython/core/displayhook.py:237–245  ·  view source on GitHub ↗

Log the output.

(self, format_dict)

Source from the content-addressed store, hash-verified

235 self.exec_result.result = result
236
237 def log_output(self, format_dict):
238 """Log the output."""
239 if 'text/plain' not in format_dict:
240 # nothing to do
241 return
242 if self.shell.logger.log_output:
243 self.shell.logger.log_write(format_dict['text/plain'], 'output')
244 self.shell.history_manager.output_hist_reprs[self.prompt_count] = \
245 format_dict['text/plain']
246
247 def finish_displayhook(self):
248 """Finish up all displayhook activities."""

Callers 1

__call__Method · 0.95

Calls 1

log_writeMethod · 0.80

Tested by

no test coverage detected