Skip to content

Commit 2c8f4cf

Browse files
MSealminrk
andauthored
Update 62-cell-id/cell-id.md
Co-authored-by: Min RK <[email protected]>
1 parent 2af9a64 commit 2c8f4cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

62-cell-id/cell-id.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The length restrictions are there for a few reasons. First, you don't want empty
7575

7676
### Updating older formats
7777

78-
Older formats can be loaded by nbformat and trivially updated to 4.5 format by running `str(uuid.uuid4())[:8]` to populate the new id field. See the [Case: loading notebook without cell id](#Case-loading-notebook-without-cell-id) section for more options for auto-filling ids.
78+
Older formats can be loaded by nbformat and trivially updated to 4.5 format by running `uuid.uuid4().hex[:8]` to populate the new id field. See the [Case: loading notebook without cell id](#Case-loading-notebook-without-cell-id) section for more options for auto-filling ids.
7979

8080
### Alternative Schema Change
8181

0 commit comments

Comments
 (0)