Skip to content

Commit 33f345b

Browse files
committed
Updated answer about cross-notebook copying
1 parent b6b27df commit 33f345b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

62-cell-id/cell-id.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ As an informational data point, the [jupyterlab-interactive-dashboard-editor](ht
9595

9696
### Reference implementation
9797

98-
The nbformat [PR#189](https://github.com/jupyter/nbformat/pull/189) has a full (unreviewed) working change of the proposal applied to nbformat. Outside of tests and the cell id uniqueness check the change can be captured with this diff:
98+
The nbformat [PR#189](https://github.com/jupyter/nbformat/pull/189) has a full (unreviewed) working change of the proposal applied to nbformat. Note that the pattern allows for numerics as the first character, which in some places in html4 is not allowed. Outside of tests and the cell id uniqueness check the change can be captured with this diff:
9999

100100
```
101101
diff --git a/nbformat/v4/nbformat.v4.schema.json b/nbformat/v4/nbformat.v4.schema.json
@@ -262,7 +262,7 @@ Use Option D for most human readable, but adds a corpus requirement to the id ge
262262
7. So if nbformat >= 4.5 loads in a pre 4.5 notebook, then a cell ID would be generated and added to each cell?
263263
- Yes.
264264
8. If a cell is cut out of a notebook and pasted into another, should the cell ID be retained?
265-
- No. Much like copying contents out of one document into another -- you have a new cell with equivalent contents and a new id.
265+
- This will depend on the application for now, as this JEP only focuses on Cell ID within an individual notebook. Different applications might handle pasting cells across notebooks differently.
266266
9. What are the details when splitting cells?
267267
- One cell (preferably the one with the top half of the code) keeps the id, the other gets a new id. This could be adjusted if folks want a different behavior without being a huge problem so long as we're consistent.
268268

0 commit comments

Comments
 (0)