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

Method write

IPython/utils/io.py:66–70  ·  view source on GitHub ↗

Write data to both channels.

(self, data)

Source from the content-addressed store, hash-verified

64 self._closed = True
65
66 def write(self, data):
67 """Write data to both channels."""
68 self.file.write(data)
69 self.ostream.write(data)
70 self.ostream.flush()
71
72 def flush(self):
73 """Flush both channels."""

Callers 15

temp_pyfileFunction · 0.45
_set_term_title_xtermFunction · 0.45
format2Method · 0.45
__call__Method · 0.45
showMethod · 0.45
write_output_promptMethod · 0.45
pasteMethod · 0.45
set_input_modeFunction · 0.45
pprintFunction · 0.45
textMethod · 0.45
breakableMethod · 0.45

Calls 1

flushMethod · 0.45

Tested by 4

write_fileMethod · 0.36
new_moduleMethod · 0.36