andrewray / iocaml

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

Referencing `Iocaml` doesn't work from jupyter #47

Closed jaredly closed 8 years ago

jaredly commented 8 years ago

From the iocaml command: image

From jupyter, starting a notebook w/ the ocaml kernel: image

My ~/Library/Jupyter/kernels/ocaml/kernel.json (swiped from this gist) looks like:

{
"display_name": "OCaml",
"language": "ocaml",
"argv": [
    "/Users/jared/.opam/io2/bin/iocaml.top",
    "-log",
    "iocaml.log",
    "-object-info",
    "-completion",
    "-connection-file",
    "{connection_file}"
]
}

Is there some arg I'm missing or something?

jaredly commented 8 years ago

ah, solution was #require "iocaml-kernel.notebook"