Open mootari opened 4 years ago
For my purposes I would like to see:
documentPull
=> returns an array of cells (this exists today, but is blocked by an origin check)documentPush(cells: Cell[])
=> replaces the current array of cells with the supplied ones and bumps version etc.would be nice to also have a convenience method for updating single cell. something along the lines of:
updateCell(notebookUrl, cellId, value, pinned)
Please keep in mind that a document's node content is a list of changesets. To update a single cell, you'd:
Updating a single cell by name seems a bit too high level and specific for a first iteration. However, ideally you should be able to implement these kinds of abstractions on top of the API.
yeah, I agree. Maybe phase 2. I just thought it would make it really easy to have that as part of this api for notebook editors to just submit cell code changes and pinned state, which I suspect would be your most frequently used scenario for this api.
TBD