From c695c023d9a5cc286e83dff8b4dc7546e7ff29fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Collonval?= Date: Fri, 14 Apr 2023 04:52:21 -0400 Subject: [PATCH] Backport PR #161: Trust the default cell --- jupyter_ydoc/ydoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jupyter_ydoc/ydoc.py b/jupyter_ydoc/ydoc.py index ae8cbe9..8125408 100644 --- a/jupyter_ydoc/ydoc.py +++ b/jupyter_ydoc/ydoc.py @@ -176,7 +176,8 @@ def set(self, value): { "cell_type": "code", "execution_count": None, - "metadata": {}, + # auto-created empty code cell without outputs ought be trusted + "metadata": {"trusted": True}, "outputs": [], "source": "", "id": str(uuid4()),