Skip to content

Commit ce14c0c

Browse files
Add ycells getter (#136)
1 parent 2c9eef1 commit ce14c0c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

jupyter_ydoc/ynotebook.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ def __init__(self, ydoc: Optional[Y.YDoc] = None):
5757
self._ymeta = self._ydoc.get_map("meta")
5858
self._ycells = self._ydoc.get_array("cells")
5959

60+
@property
61+
def ycells(self):
62+
"""
63+
Returns the Y-cells.
64+
65+
:return: The Y-cells.
66+
:rtype: :class:`y_py.YArray`
67+
"""
68+
return self._ycells
69+
6070
@property
6171
def cell_number(self) -> int:
6272
"""

0 commit comments

Comments
 (0)