{ } Raw JSON

bundles / IPython 9.13.0 / IPython / core / compilerop / CachingCompiler / format_code_name

function

IPython.core.compilerop:CachingCompiler.format_code_name

source: /IPython/core/compilerop.py :119

Signature

def   format_code_name ( self name )  →  str

Summary

Return a user-friendly label and name for a code block.

Parameters

name : str

The 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