We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e65e9d commit d45cc24Copy full SHA for d45cc24
1 file changed
Kernel/Notebook.wl
@@ -15,7 +15,7 @@ HashMap = <||>;
15
16
NullQ[any_] := any === Null
17
18
-initNotebook[o_] := With[{uid = CreateUUID[]},
+initNotebook[o_] := With[{uid = If[StringQ[o["Hash"] ] && o["Hash"] =!= Null, o["Hash"], CreateUUID[] ]},
19
o["Hash"] = uid;
20
HashMap[uid] = o;
21
o
0 commit comments