You are viewing an older version (9.5.0).Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.5.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)

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