Return a display label: `'id' (name)` or `'id'`.
(self, cell_id: CellId_t)
| 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 |
no test coverage detected