bundles / IPython 9.18.0.dev / IPython / utils / PyColorize / Parser / format2
function
IPython.utils.PyColorize:Parser.format2
source: /IPython/utils/PyColorize.py:533
Signature
def format2(self, raw: str, out: Any = None) → tuple[str | None, bool]Summary
Parse and send the colored source.
Extended Summary
If out is not specified, the defaults (given to constructor) are used.
out should be a file-type object. Optionally, out can be given as the string 'str' and the parser will automatically return the output in a string.
Aliases
IPython.utils.PyColorize.Parser.format2