Liking cljdoc? Tell your friends :D

Usage Scenarios

Here you can read about different ways of using Clojupyter (Cλ).

Scenario overview:

ScenarioWhatDescriptionRecommended?
STANDALONEBuild and install clojupyter on your computerRun Clojupyer natively.Y
CONDASimply do conda install ... to get startedEasiest way to get started with CλY
DOCKERQuickly check out CλTry Cλ without installing anythingN

Details of each scenario described below.

STANDALONE: Build and install clojupyter on you computer

If you already have Jupyter installed, you can install Clojupyter alongside your other existing kernels. Clojupyter build, installs and runs natively on Linux, MacOS and Windows.

bin directory contains bash and powershell scripts to manage the native installations of clojupyter, including but not limited to: installing, uninstalling, listing, enabling and disabling plugins.

The STANDALONE and CONDA scenarios allow you to use the Clojupyter kernel in the context of a clojure project by passing the CLASSPATH environment variable to the jupyter process. E.g.: Let's imagine a clojure project foo that includes project.clj in its root directory. If you call CLASSPATH=$(lein classpath) jupyter <lab/notebook>, you'll start a jupyter lab/notebook process with the source code of foo and its dependencies available to Clojupyter at runtime. If you use deps.edn for dependency management, you can get a list of deps with clojure -Spath

bin/clojupyter does the CLASSPATH setup automatically, so it can be copied somewhere on the PATH and be used to start jupyter when working with clojure projects.

CONDA: Use conda to install Clojupyter on Linux, MacOS and Windows

Clojupyter supports Anaconda which is the installation method recommended by the Jupyter project. If you are new to Clojupyter and/or Clojure, we recommend that you use this method to install Clojupyter.

Installing Clojupyter using Anaconda gets you a generic Clojupyter kernel providing essentially unlimited functionality. One of the key advantages to the Conda install is that, by leveraging the infrastructure provided by Anaconda, it provides a very simple way to install Clojupyter on both Linux, MacOS and Windows: All you need to do is (1) install Anaconda and (2) use a single command to install Clojupyter.

See Conda-installing Clojupyter for details on how to install Clojupyter using Anaconda.

Usage scenario CONDA overview:

FEATURECOMMENT
HeadlineEasiest way to get started with Clojupyter
AudienceEnd-users
What it gets youGeneric Clojure/Clojupyter
How to installconda install -c simplect clojupyter
Supported platformsLinux, MacOS, Windows (all 64 bit)
DisadvantageNo custom code in kernel - must be loaded in each session

DOCKER: Try Clojupyter via a Docker image

If you have Docker and you simply want to try out Clojupyter without installing anything, you can run the pre-built Clojupyter Docker image. It has the full functionality of Clojupyter, but since it is not well integrated into the host environment (it can only 'see' notebooks in a certain sub-directory, for example), we do not recommend that you use Clojupyter this way if you want to do real work - any of the other (above) ways of accessing Clojupyter should be preferable to running it inside Docker. For end-users new to Clojupyter we recommend using Anaconda to install a generic Clojupyter (see CONDA scenario above) instead. As you gain experience you may want to install your own custom kernel, with additional libraries and functionality preloaded (see LIB scenario above).

See The Docker Way for details on how to try out Clojupyter using Docker.

Usage scenario DOCKER overview:

FEATURECOMMENT
HeadlineTry Clojupyter without installing anything (requires Docker)
AudienceProspective Clojupyter users
What it gets youAbility to evaluate Clojure code in Jupyter
How to installSee Installation guide
Supported platformsSame as Docker

Can you improve this documentation? These fine people already did:
Daniel Ciumberică, Simon Bronner, Sam Hahn & Klaus Harbo
Edit on GitHub

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

× close