Add OCaml support to https://iodide.io/
Demo: https://louisabraham.github.io/domical/
In a iodide notebook, add a plugin cell:
%% plugin
{
"languageId": "ml",
"displayName": "OCaml",
"codeMirrorMode": "mllike",
"url": "https://louisabraham.github.io/domical/eval.js",
"module": "evaluator",
"evaluator": "execute",
"pluginType": "language"
}
To recompile the
eval.js script, you
need:
- ocaml
- jbuilder
- js_of_ocaml
make
- add JS bindings to share variables between OCaml and JS