package quill

  1. Overview
  2. Docs
On This Page
  1. Directory mode
Interactive REPL and markdown notebooks

Install

dune-project
 Dependency

Authors

Maintainers

Sources

raven-1.0.0.alpha3.tbz
sha256=96d35ce03dfbebd2313657273e24c2e2d20f9e6c7825b8518b69bd1d6ed5870f
sha512=90c5053731d4108f37c19430e45456063e872b04b8a1bbad064c356e1b18e69222de8bfcf4ec14757e71f18164ec6e4630ba770dbcb1291665de5418827d1465

doc/quill.server/Quill_server/index.html

Module Quill_serverSource

Web notebook server.

Quill_server serves a Jupyter-like notebook interface over HTTP and WebSocket.

Sourceval serve : create_kernel:(on_event:(Quill.Kernel.event -> unit) -> Quill.Kernel.t) -> ?addr:string -> ?port:int -> ?on_ready:(unit -> unit) -> string -> unit

serve ~create_kernel path starts the web notebook server for the notebook at path. create_kernel is called once to obtain a kernel. addr defaults to "127.0.0.1", port to 8888. on_ready is called after the server socket is bound and listening, before the accept loop starts. Blocks until the server is stopped. Exits the process with status 1 if path does not exist.

Directory mode

Sourceval serve_dir : create_kernel:(on_event:(Quill.Kernel.event -> unit) -> Quill.Kernel.t) -> ?addr:string -> ?port:int -> ?on_ready:(unit -> unit) -> ?prelude:(string -> string option) -> toc:Quill_project.toc_item list -> string -> unit

serve_dir ~create_kernel ~toc root starts the web notebook server for a directory of notebooks at root. toc defines the table of contents structure shown in the sidebar. Each notebook gets its own kernel, created lazily on first access. prelude is called with the notebook's relative path and may return OCaml code to execute before the notebook's cells. addr defaults to "127.0.0.1", port to 8888.