lightning_template.utils.callbacks.set_rich_traceback_handler

lightning_template.utils.callbacks.set_rich_traceback_handler#

Module Contents#

Classes#

SetRichTracebackHandlerCallback

Abstract base class used to build new callbacks.

class lightning_template.utils.callbacks.set_rich_traceback_handler.SetRichTracebackHandlerCallback(width: int | None = 100, extra_lines: int = 3, theme: str | None = None, word_wrap: bool = False, show_locals: bool = False, locals_max_length: int = LOCALS_MAX_LENGTH, locals_max_string: int = LOCALS_MAX_STRING, locals_hide_dunder: bool = True, locals_hide_sunder: bool | None = None, indent_guides: bool = True, max_frames: int = 100)#

Bases: lightning.pytorch.Callback

Abstract base class used to build new callbacks.

Subclass this class and override any of the relevant hooks