Skip to content

Commit 4677cf4

Browse files
committed
fix edit tool
1 parent 2b7effc commit 4677cf4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jupyter_ai_jupyternaut/jupyternaut/toolkits/notebook.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,7 @@ async def edit_cell(file_path: str, cell_id: str, content: str) -> None:
10721072
cell_index = _get_cell_index_from_id_ydoc(ydoc, resolved_cell_id)
10731073
if cell_index is not None:
10741074
ycell = ydoc._ycells[cell_index]
1075-
#await write_to_cell_collaboratively(ydoc, ycell, content)
1076-
ycell["source"] = content
1075+
await write_to_cell_collaboratively(ydoc, ycell, content)
10771076
else:
10781077
raise ValueError(f"Cell with {cell_id=} not found in notebook")
10791078
else:

0 commit comments

Comments
 (0)