package jupyter-kernel

  1. Overview
  2. Docs
type config
val mk_config : ?additional_args:(Stdlib.Arg.key * Stdlib.Arg.spec * Stdlib.Arg.doc) list -> usage:string -> unit -> config

mk_config ?additional_args ~usage will parse command line arguments and returns a config object to be consumed by main.

  • A connection file can be passed using --connection-file <file>;
  • A log file through --log <file>;
  • Individual connection parameters with --ci-<foo> <bar>;
  • See --help for more details;
  • The parameter additional_args can contain additional command line arguments.
val main : config:config -> kernel:Client.Kernel.t -> unit Lwt.t

main ~config ~kernel will open a connection using Sockets, and run the passed kernel. Run via Lwt_main.run

OCaml

Innovation. Community. Security.