euporie.core.widgets.cell.get_cell_id

euporie.core.widgets.cell.get_cell_id(cell_json: dict) str

Return the cell ID field defined in a cell JSON object.

If no cell ID is defined (as per `:mod:`nbformat`<4.5), then one is generated and added to the cell.

Parameters

cell_json – The cell’s JSON object as a python dictionary

Returns

The ID string