Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An OCaml javascript kernel for the IPython notebook
JavaScript OCaml Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
notebooks
static
.gitignore
.travis-ci.sh
.travis.yml
LICENSE
META
Makefile
README.md
core_runtime.js
exec.ml
exec.mli
iocaml.ml
iocaml.mli
iocaml_main.ml
iocamljs_mktop.sh
kernel.js
lwt_unix.js

README.md

IOCaml logo

Build Status

IOCamlJS

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.

See also

This repository hosts the iocamljs-kernel package.

With this kernel the OCaml REPL is compiled to JavaScript and run in the browser.

The demo notebook js_of_ocaml-webgl-demo.ipynb provides a good example of what can be done. Its an almost direct copy of the js_of_ocaml WebGL demo except the 3d model, shader code, ocaml code and html code are all embedded in the notebook and can be compiled and run live in the browser.

When run using the IOCaml server the toplevel can support file I/O including dynamic loading of libraries using topfind #require directives.

Installation

$ opam install iocaml

or to just get the kernel

$ opam install iocamljs-kernel

Precompiled versions which can be used with the Enthought IPython distribution on Windows can be downloaded from here.

Something went wrong with that request. Please try again.