MCPcopy
hub / github.com/marimo-team/marimo / cells

Method cells

marimo/_ast/cell_manager.py:426–435  ·  view source on GitHub ↗

Get an iterator over all Cell objects. Returns: Iterable[Optional[Cell]]: Iterator yielding Cell objects (or None for invalid cells)

(
        self,
    )

Source from the content-addressed store, hash-verified

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.

Callers 7

read_snippetsFunction · 0.45
test_batched_cellsFunction · 0.45
test_isolation_cellsFunction · 0.45
test_add_codeFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 6

test_batched_cellsFunction · 0.36
test_isolation_cellsFunction · 0.36
test_add_codeFunction · 0.36