{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / compilerop / CachingCompiler / get_code_name

function

IPython.core.compilerop:CachingCompiler.get_code_name

source: /dev/ipython/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