We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 925b257 commit 00ca649Copy full SHA for 00ca649
jupyter_ydoc/ynotebook.py
@@ -222,17 +222,7 @@ def set(self, value: Dict) -> None:
222
nb_without_cells = {key: value[key] for key in value.keys() if key != "cells"}
223
nb = copy.deepcopy(nb_without_cells)
224
cast_all(nb, int, float) # Yjs expects numbers to be floating numbers
225
- cells = value["cells"] or [
226
- {
227
- "cell_type": "code",
228
- "execution_count": None,
229
- # auto-created empty code cell without outputs ought be trusted
230
- "metadata": {"trusted": True},
231
- "outputs": [],
232
- "source": "",
233
- "id": str(uuid4()),
234
- }
235
- ]
+ cells = value["cells"]
236
237
with self._ydoc.transaction():
238
# clear document
0 commit comments