Basic mime display support

Run with iocaml -js min <notebook>

Demonstrate basic iocaml mime display support in output cells.


In [1]:
Iocaml.display "text/html" "<b>hi world</b>"


hi world
Out[1]:
- : unit = ()

In [2]:
Iocaml.display "text/plain" "<b>hi world</b>"


<b>hi world</b>
Out[2]:
- : unit = ()

In [3]:
Iocaml.display ~base64:true "text/plain" "<b>hiworld</b>"


PGI+aGl3b3JsZDwvYj4=
Out[3]:
- : unit = ()

In [ ]: