Skip to content

Commit

Permalink
Replace Uuidm.create (deprecated).
Browse files Browse the repository at this point in the history
  • Loading branch information
xclerc committed Feb 27, 2022
1 parent 791c2dc commit f066c71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jupyter/src/comm/manager.ml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ struct
let default = `Assoc []

let create ?(data = default) target =
let comm_id = Uuidm.(to_string (create `V4)) in
let comm_id = Uuidm.(to_string (v `V4)) in
ignore (register target comm_id) ;
Jupyter_notebook__Unsafe.send_iopub
(IOPUB_COMM_OPEN {
Expand Down
2 changes: 1 addition & 1 deletion jupyter/src/core/message.ml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ let epoch_to_iso8601_string epoch =

let create_next ?(time = Unix.gettimeofday ()) ~content_to_yojson parent content =
let date = Some (epoch_to_iso8601_string time) in
let msg_id = Uuidm.(to_string (create `V4)) in
let msg_id = Uuidm.(to_string (v `V4)) in
let msg_type =
match content_to_yojson content with
| `List (`String msg_type :: _) -> msg_type
Expand Down
2 changes: 1 addition & 1 deletion jupyter/src/notebook/jupyter_notebook.ml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let display ?ctx ?display_id ?(metadata = `Assoc []) ?(base64 = false) mime data
let send content = Unsafe.send_iopub ?ctx content in
match display_id with
| None ->
let display_id = Uuidm.(to_string (create `V4)) in
let display_id = Uuidm.(to_string (v `V4)) in
send (IOPUB_DISPLAY_DATA {
display_data = `Assoc [mime, `String data];
display_metadata = metadata;
Expand Down

0 comments on commit f066c71

Please sign in to comment.