Get an iterator over all Cell objects. Returns: Iterable[Optional[Cell]]: Iterator yielding Cell objects (or None for invalid cells)
(
self,
)
| 424 | return cell_id in self._document |
| 425 | |
| 426 | def cells( |
| 427 | self, |
| 428 | ) -> Iterable[Cell | None]: |
| 429 | """Get an iterator over all Cell objects. |
| 430 | |
| 431 | Returns: |
| 432 | Iterable[Optional[Cell]]: Iterator yielding Cell objects (or None for invalid cells) |
| 433 | """ |
| 434 | for nb_cell in self._document._cells: |
| 435 | yield self._compiled_cells.get(nb_cell.id) |
| 436 | |
| 437 | def config_map(self) -> dict[CellId_t, CellConfig]: |
| 438 | """Get a mapping of cell IDs to their configurations. |