diff --git a/jupyter_collaboration/rooms.py b/jupyter_collaboration/rooms.py index 86b4eb6d..d1e2a6bc 100644 --- a/jupyter_collaboration/rooms.py +++ b/jupyter_collaboration/rooms.py @@ -100,6 +100,7 @@ async def initialize(self) -> None: # try to apply Y updates from the YStore for this document read_from_source = True if self.ystore is not None: + await self.ystore.started.wait() try: await self.ystore.apply_updates(self.ydoc) self._emit( diff --git a/pyproject.toml b/pyproject.toml index 5bb2aeaf..9e9c6cad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ classifiers = [ dependencies = [ "jupyter_server>=2.0.0,<3.0.0", "jupyter_ydoc>=2.0.0,<3.0.0", - "pycrdt-websocket>=0.13.1,<0.14.0", + "pycrdt-websocket>=0.13.2,<0.14.0", "jupyter_events>=0.10.0", "jupyter_server_fileid>=0.7.0,<1", "jsonschema>=4.18.0"