Liking cljdoc? Tell your friends :D

How to Use Emmy

Emmy Supported Environments

This section, like many others in the docs at the moment, is quite sparse. This will change in the coming months!

Emmy is best experienced in an interactive environment like the Clojure REPL. We support a number of environments with rich support for TeX rendering and plotting. These are catalogued below., paired with "Getting Started" instructions.

After setting up your environment with any of the listed methods, visit the Emmy Quickstart to get some ideas about how to use the library.

Clojure(script) REPL

Install Emmy into your Clojure(script) project using the instructions at its Clojars page:

emmy

Initialize the emmy.env "Batteries Included" environment at the REPL:

(require '[emmy.env :as env])
(env/bootstrap-repl!)

And

Nextjournal

You can access all Emmy namespaces from any Nextjournal page by typing

```cljs

and hitting <space> in any block, and evaluating the following form:

(nextjournal.env/load! :emmy)

Any subsequent ClojureScript block will have every function in emmy.env available.

Visit the Emmy Tutorial on Nextjournal to try all of the examples in the Quickstart in your browser with no setup required.

Many of the exercises from Structure and Interpretation of Classical Mechanics exist in Nextjournal form at the Nextjournal SICM directory. To try any of these notebooks without creating an account:

All cells on this new page will be interactive.

Planned Environments

Many of these are working but undocumented. Check back, or file an issue to get more details.

Working:

Planned:

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close