diff --git a/python/jupytergis_core/jupytergis_core/jgis_ydoc.py b/python/jupytergis_core/jupytergis_core/jgis_ydoc.py index 2c69ffa2..15527e35 100644 --- a/python/jupytergis_core/jupytergis_core/jgis_ydoc.py +++ b/python/jupytergis_core/jupytergis_core/jgis_ydoc.py @@ -2,14 +2,13 @@ from typing import Any, Callable from functools import partial -from pycrdt import Array, Map, Text +from pycrdt import Array, Map from jupyter_ydoc.ybasedoc import YBaseDoc class YJGIS(YBaseDoc): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self._ydoc["source"] = self._ysource = Text() self._ydoc["layers"] = self._ylayers = Map() self._ydoc["sources"] = self._ysources = Map() self._ydoc["options"] = self._yoptions = Map() @@ -59,9 +58,6 @@ def observe(self, callback: Callable[[str, Any], None]): self._subscriptions[self._ystate] = self._ystate.observe( partial(callback, "state") ) - self._subscriptions[self._ysource] = self._ysource.observe( - partial(callback, "source") - ) self._subscriptions[self._ylayers] = self._ylayers.observe_deep( partial(callback, "layers") )