Skip to content

Commit 3b3a4af

Browse files
authored
Trust default cell (#161)
1 parent 2fe1ae5 commit 3b3a4af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter_ydoc/ynotebook.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ def set(self, value: Dict) -> None:
239239
{
240240
"cell_type": "code",
241241
"execution_count": None,
242-
"metadata": {},
242+
# auto-created empty code cell without outputs ought be trusted
243+
"metadata": {"trusted": True},
243244
"outputs": [],
244245
"source": "",
245246
"id": str(uuid4()),

0 commit comments

Comments
 (0)