show_source
- IpynbFormatter.show_source(error: Violation) str | None
Show the physical line generating the error.
This also adds an indicator for the particular part of the line that is reported as generating the problem.
- Parameters:
error – This will be an instance of
Violation
.- Returns:
The formatted error string if the user wants to show the source. If the user does not want to show the source, this will return
None
.