This directory contains interactive notebooks showcasing Stratum's features.
Start a REPL with notebook support:
clj -M:repl
Then load and evaluate the notebook:
(load-file "notebooks/stratum_intro.clj")
Stratum notebooks use the Kindly convention and can be rendered with Clay:
(require '[scicloj.clay.v2.api :as clay])
;; Render to HTML
(clay/make! {:source-path "notebooks/stratum_intro.clj"
:show true}) ;; Opens in browser
;; Or generate Quarto document
(clay/make! {:source-path "notebooks/stratum_intro.clj"
:format [:quarto :html]})
The notebooks are regular Clojure files with comment-based documentation. You can:
Follow the Kindly convention:
;; for documentation (rendered as markdown);; # for headers, ;; ## for subheadersscicloj.kindly.v4.kind namespace for special rendering hintsExample:
;; # My Notebook Title
;; This is regular text that explains something.
(ns my-notebook
(:require [stratum.api :as stratum]
[scicloj.kindly.v4.kind :as kind]))
;; ## Section Header
;; More explanation here.
(def my-data {:x [1 2 3]})
;; The result will be displayed:
my-data
Notebooks have access to:
tablecloth.api and tech.v3.dataset for dataframe interopscicloj.kindly.v4.kind for rendering hints (when using Clay)Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |