From ce7f444f6a3e6703aa4c12b944863c211c597037 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Thu, 8 Feb 2024 13:22:32 +0100 Subject: [PATCH] Fix step file --- python/jupytercad_core/jupytercad_core/step_ydoc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/jupytercad_core/jupytercad_core/step_ydoc.py b/python/jupytercad_core/jupytercad_core/step_ydoc.py index cbeb6586..5d658672 100644 --- a/python/jupytercad_core/jupytercad_core/step_ydoc.py +++ b/python/jupytercad_core/jupytercad_core/step_ydoc.py @@ -28,8 +28,7 @@ def set(self, value: str) -> None: :param value: The content of the document. :type value: Any """ - with self._ydoc.transaction() as t: - self._ysource.extend(t, value) + self._ysource[:] = value def observe(self, callback: Callable[[str, Any], None]): self.unobserve()