bundles / IPython 9.17.0 / IPython / core / compilerop / CachingCompiler / format_code_name
function
IPython.core.compilerop:CachingCompiler.format_code_name
Signature
def format_code_name(self, name: str) → tuple[str, str] | NoneSummary
Return a user-friendly label and name for a code block.
Parameters
name: strThe name for the code block returned from get_code_name
Returns
: A (label, name) pair that can be used in tracebacks, or None if the default formatting should be used.
Aliases
IPython.core.compilerop.CachingCompiler.format_code_name