package jupyter-archimedes

Not available on OCaml 5.5
  1. Overview
  2. Docs
A Jupyter-friendly 2D plotting library (Archimedes backend)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

jupyter-archimedes-2.7.3.tbz
sha256=8c6d8e8b9c89166f38248337f101bbfa7ac564857bd4b2a820423ac541374636

Description

This library registers Jupyter backend to Archimedes, a simple and easy-to-use 2D plotting library. You can embed chart images into Jupyter notebooks.

Added to opam-repository:

README

jupyter-archimedes CI

A Jupyter-friendly 2D plotting library based on Archimedes.

jupyter-archimedes adds OCaml Jupyter backend to Archimedes, a 2D plotting library written in OCaml. You can plot and embed figures on Jupyter.

Screenshot

Getting started

Install jupyter-archimedes by opam:

opam install jupyter-archimedes

Usage

We show a simple example of jupyter-archimedes as follows:

#use "topfind" ;; (* or you can automatically load topfind by adding this line to ~/.ocamlinit *)
#require "jupyter-archimedes" ;;  (* an Archimedes backend is added. *)

let vp = A.init ~w:560. ~h:260. ["jupyter"] in
A.Axes.box vp ;  (* Draw tics. *)
A.fx vp sin 0.0 10.0 ;  (* Plot a sin curve from 0 up to 10. *)
A.close vp  (* Show a figure. *)

Other examples are in the notebooks directory.

Dependencies (5)

  1. archimedes
  2. cairo2 >= "0.6"
  3. jupyter >= "2.7.2"
  4. dune >= "2.8.0"
  5. ocaml >= "4.04.0"

Dev Dependencies (1)

  1. ocp-indent with-test & >= "1.7.0"

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building jupyter-archimedes with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
2.7.3 (this version) good good n/a n/a n/a
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure