A library for Jupyter notebooks
val display : ?ctx:ctx ‑> ?display_id:display_id ‑> ?metadata:Yojson.Safe.json ‑> ?base64:bool ‑> string ‑> string ‑> display_id
display ?ctx ?base64 mime data
shows data
at ctx
. mime
is the mime
type of data
.
false
.val display_file : ?ctx:ctx ‑> ?display_id:display_id ‑> ?metadata:Yojson.Safe.json ‑> ?base64:bool ‑> string ‑> string ‑> display_id
display_file ?ctx ?base64 mime filename
shows data in the file of path
filename
at ctx
. mime
is the mime type of the data.
false
.val clear_output : ?ctx:ctx ‑> ?wait:bool ‑> unit ‑> unit
clear_output ?ctx ?wait ()
removes displayed elements from ctx
.
false
. Wait to clear the output until new output is
available.val printf : ('a, Format.formatter, unit) Pervasives.format ‑> 'a
Same as Format.printf, but output on JupyterNotebook.formatter.
val display_formatter : ?ctx:ctx ‑> ?display_id:display_id ‑> ?metadata:Yojson.Safe.json ‑> ?base64:bool ‑> string ‑> display_id
display_formatter ?ctx ?base64 mime
shows data written in
JupyterNotebook.formatter at ctx
.
mime
is the mime type of the data.
JupyterNotebook.formatter is flushed and data in the formatter is cleaned by calling this function.
false
.