Skip to content

Instantly share code, notes, and snippets.

@mseri
Created June 26, 2019 19:56
Show Gist options
  • Save mseri/bfe4c7cfb0232b1c991512a0df96a64f to your computer and use it in GitHub Desktop.
Save mseri/bfe4c7cfb0232b1c991512a0df96a64f to your computer and use it in GitHub Desktop.
open Matplotlib;;
let plot () =
let data = Mpl.plot_data `png in
ignore (Jupyter_notebook.display ~base64:true "image/png" data);;
let () =
Mpl.set_backend Agg;
Mpl.style_use "ggplot"
;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment