map_intermediate_to_input

map_intermediate_to_input(input_line_mapping: InputLineMapping, line_number: int) tuple[CellId, int][source]

Map intermediate file lines to notebook cell and line.

Maps the line at line_number to the corresponding code cell (input_cell_name) and line number in the code cell (input_cell_line_number)

Parameters:
  • input_line_mapping (InputLineMapping) – Dict containing lists of input cell names and their line in the intermediate file.

  • line_number (int) – Line in the intermediate py file.

Returns:

Input cell ID and corresponding line in that cell (input_id, input_cell_line_number)

Return type:

tuple[CellId, int]