write
- IpynbFormatter.write(line: str | None, source: str | None) None
Write the line either to the output file or stdout.
This handles deciding whether to write to a file or print to standard out for subclasses. Override this if you want behaviour that differs from the default.
- Parameters:
line – The formatted string to print or write.
source – The source code that has been formatted and associated with the line of output.