IOCaml is an OCaml kernel for the IPython notebook. This provides a REPL within a web browser with a nice user interface including markdown based comments/documentation, mathjax formula and the possibility of generating all manner of HTML based output media from your code.
This repository hosts the
This project replaces all the Python code with an OCaml webserver based on cohttp.
$ iocaml [options] [path or file]
If started with a path then the dashboard interface will be started which lists notebooks in the given directory.
.ipynb file is given then the notebook will be loaded.
$ iocaml -js <kernel> [...]
<kernel> may currently be either:
minjust the ocaml toplevel
fullincludes camlp4, lwt, js_of_ocaml and their syntax extentions
$ iocaml -js min -serve /home/andyman/.opam
This would allow files from the
.opam directory to be read from the
-serve pathserves files from path to the same uri
-serve-at uri pathserves files from path at the given uri
-serve options can be specified and they are tested in order
until a file is found.
js_of_ocaml psuedo file system has been setup so you can use the standard
file I/O facilities to access served files (read only at the moment, write
support is a future possibliity).