MCPcopy Index your code
hub / github.com/marimo-team/marimo / _cell_label

Method _cell_label

marimo/_code_mode/_context.py:920–926  ·  view source on GitHub ↗

Return a display label: `'id' (name)` or `'id'`.

(self, cell_id: CellId_t)

Source from the content-addressed store, hash-verified

918 return cell is not None and cell.exception is not None
919
920 def _cell_label(self, cell_id: CellId_t) -> str:
921 """Return a display label: `'id' (name)` or `'id'`."""
922 short = repr(str(cell_id)[:8])
923 doc_cell = self._document.get(cell_id)
924 if doc_cell and doc_cell.name:
925 return f"{short} ({doc_cell.name})"
926 return short
927
928 # ------------------------------------------------------------------
929 # Read-only attributes

Callers 2

_print_summaryMethod · 0.95
_dry_run_compileMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected