Skip to content

Commit d45cc24

Browse files
committed
uid notebook provider
1 parent 7e65e9d commit d45cc24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Kernel/Notebook.wl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ HashMap = <||>;
1515

1616
NullQ[any_] := any === Null
1717

18-
initNotebook[o_] := With[{uid = CreateUUID[]},
18+
initNotebook[o_] := With[{uid = If[StringQ[o["Hash"] ] && o["Hash"] =!= Null, o["Hash"], CreateUUID[] ]},
1919
o["Hash"] = uid;
2020
HashMap[uid] = o;
2121
o

0 commit comments

Comments
 (0)