package jupyter

  1. Overview
  2. Docs
An OCaml kernel for Jupyter

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v3.0.1.tar.gz
md5=27079d43a5134a740428623185807029
sha512=40929cacd1ddc0379c84438bcda3edce47ab571ea27ff5f597b5e88fc38c9198cc69442e334e05c64d854763c162c2e8266497dbc413134beb71db00d11df6ce

doc/jupyter.notebook/Jupyter_notebook/index.html

Module Jupyter_notebookSource

A library for Jupyter notebooks

Sourcetype ctx
Sourcetype display_id
Sourceval cell_context : unit -> ctx

Returns the current cell context.

Sourceval display : ?ctx:ctx -> ?display_id:display_id -> ?metadata:Yojson.Safe.t -> ?base64:bool -> string -> string -> display_id

display ?ctx ?base64 mime data shows data at ctx. mime is the mime type of data.

  • parameter ctx

    default = the current cell.

  • parameter display_id

    default = a fresh ID (since 1.0.0)

  • parameter metadata

    default = nothing (since 1.0.0)

  • parameter base64

    default = false.

Sourceval display_file : ?ctx:ctx -> ?display_id:display_id -> ?metadata:Yojson.Safe.t -> ?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.

  • parameter ctx

    default = the current cell.

  • parameter display_id

    default = a fresh ID (since 1.0.0)

  • parameter metadata

    default = nothing (since 1.0.0)

  • parameter base64

    default = false.

  • since 1.1.0
Sourceval clear_output : ?ctx:ctx -> ?wait:bool -> unit -> unit

clear_output ?ctx ?wait () removes displayed elements from ctx.

  • parameter ctx

    default = the current cell.

  • parameter wait

    default = false. Wait to clear the output until new output is available.

Printf

Sourceval formatter : Format.formatter

The formatter for displaying data on notebooks.

  • since 1.1.0
Sourceval printf : ('a, Format.formatter, unit) format -> 'a

Same as Format.printf, but output on Jupyter_notebook.formatter.

  • since 1.1.0
Sourceval display_formatter : ?ctx:ctx -> ?display_id:display_id -> ?metadata:Yojson.Safe.t -> ?base64:bool -> string -> display_id

display_formatter ?ctx ?base64 mime shows data written in Jupyter_notebook.formatter at ctx. mime is the mime type of the data.

Jupyter_notebook.formatter is flushed and data in the formatter is cleaned by calling this function.

  • parameter ctx

    default = the current cell.

  • parameter display_id

    default = a fresh ID (since 1.0.0)

  • parameter metadata

    default = nothing (since 1.0.0)

  • parameter base64

    default = false.

  • since 1.1.0

Utilities

Sourcemodule Bench : sig ... end

Benchmark functions

Sourcemodule Process : sig ... end

Operations on subprocesses

Sourcemodule Eval : sig ... end

Evaluation of OCaml code