andrewray / iocaml

An OCaml kernel for the IPython notebook
MIT License
193 stars 20 forks source link

Starting ocaml with additional parameters #41

Open ysalmon opened 8 years ago

ysalmon commented 8 years ago

How can I configure the iocaml kernel to start the underlying ocaml toplevel with additional parameters ?

I just managed to run jupyter with iocaml-kernel with Arthur Charguéraud compiler 4.02.0+improved-errors (https://github.com/charguer/ocaml) , but I need to pass it the -easy command line parameter to get the enhanced error messages.

andrewray commented 8 years ago

iocaml doesnt parse toplevel options, so you will need to compile a custom version. For reference I did exactly this for iocamljs a while back;

https://github.com/andrewray/iocamljs/commit/70c72d79db27c91fb53df685d421d749d82ffc82

Not sure exactly what options you will need for the latest version, but it'll be something similar.