Skip to content

Commit b54268e

Browse files
committed
Add document apply_update method
1 parent 5f4a14d commit b54268e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

jupyter_ydoc/ydoc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ def unobserve(self):
4646
k.unobserve(v)
4747
self._subscriptions = {}
4848

49+
def apply_update(self, update: bytes) -> None:
50+
Y.apply_update(self._ydoc, update)
51+
4952

5053
class YFile(YBaseDoc):
5154
def __init__(self, *args, **kwargs):

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ python_requires = >=3.7
2323
install_requires =
2424
setuptools
2525
y-py >=0.5.0,<0.6.0
26-
ypy-websocket >=0.1.2
26+
ypy-websocket >=0.1.7
2727

2828
[options.extras_require]
2929
test =

0 commit comments

Comments
 (0)