This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / core / compilerop / CachingCompiler / get_code_name

function

IPython.core.compilerop:CachingCompiler.get_code_name

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

Signature

def get_code_name(self, raw_code: str, transformed_code: str, number: int) → str

Summary

Compute filename given the code, and the cell number.

Parameters

raw_code : str

The raw cell code.

transformed_code : str

The executable Python source code to cache and compile.

number : int

A number which forms part of the code's name. Used for the execution counter.

Returns

: The computed filename.

Aliases

  • IPython.core.compilerop.CachingCompiler.get_code_name