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

Method format

IPython/utils/PyColorize.py:447–448  ·  view source on GitHub ↗
(self, raw: str, out: Any = None)

Source from the content-addressed store, hash-verified

445 self._theme_name = val
446
447 def format(self, raw: str, out: Any = None) -> str | None:
448 return self.format2(raw, out)[0]
449
450 def format2(self, raw: str, out: Any = None) -> tuple[str | None, bool]:
451 """Parse and send the colored source.

Callers 2

test_parse_sampleFunction · 0.95
test_parse_errorFunction · 0.95

Calls 1

format2Method · 0.95

Tested by 2

test_parse_sampleFunction · 0.76
test_parse_errorFunction · 0.76