package jupyter-kernel

  1. Overview
  2. Docs

Module Jupyter_kernel.Client_mainSource

Sourcetype config
Sourceval mk_config : ?additional_args:(Arg.key * Arg.spec * 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.
Sourceval 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.