Testing x-ocaml, OCaml notebooks as a WebComponent

Can we have OCaml notebooks as pure client-side code? Can these notebooks have rich editor support (highlighting, formatting, types on hover, autocompletion, inline diagnostics, etc.)? Can you take packages from OPAM and use them in these notebooks? The answer to all of these turns out to be a resounding yes thanks for x-ocaml . This post is my experiment playing with x-ocaml and integrating that…