Skip to content

Commit

Permalink
updated example project
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed Aug 6, 2023
1 parent 5747492 commit 04c7caf
Show file tree
Hide file tree
Showing 4 changed files with 8,415 additions and 2,363 deletions.
8 changes: 3 additions & 5 deletions examples/example-project/deps.edn
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{:deps {scicloj/tablecloth {:mvn/version "6.102"}
org.scicloj/viz.clj {:mvn/version "1-alpha5"}
org.scicloj/clay {:mvn/version "2-alpha9"}
org.scicloj/kindly-default {:mvn/version "1-alpha4"}}
:paths ["src"]}
{:deps {org.scicloj/clay {:mvn/version "2-alpha29"}
org.scicloj/kindly-default {:mvn/version "1-alpha10"}}
:paths ["src" "notebooks"]}
10,702 changes: 8,405 additions & 2,297 deletions examples/example-project/docs/example1.html

Large diffs are not rendered by default.

31 changes: 7 additions & 24 deletions examples/example-project/notebooks/example1.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,16 @@

(ns example1
(:require [scicloj.clay.v2.api :as clay]
[scicloj.viz.api :as viz]
[tablecloth.api :as tc]))

;; ## Useful commands

^:kindly/hide-code?
(comment
(do (clay/show-doc! "notebooks/example1.clj"
{:toc? true})
(clay/write-html! "docs/example1.html")))
[scicloj.kindly.v3.kind :as kind]))

;; ## Examples

(+ 1 2)

(-> (let [n 99]
(tc/dataset {:preferred-language (for [i (range n)]
(["clojure" "clojurescript" "babashka"]
(rand-int 3)))
:age (for [i (range n)]
(rand-int 100))})))
(kind/hiccup
[:div {:style
{:background-color "#eeddcc"}}
[:p "hello"]])

(-> [{:x 1 :y 2}
{:x 2 :y 4}
{:x 3 :y 9}]
viz/data
(viz/type :point)
(viz/mark-size 200)
(viz/color :x)
viz/viz)
(kind/md
["hello *hello* **hello**"])
37 changes: 0 additions & 37 deletions examples/example-project/notebooks/interaction_draft.clj

This file was deleted.

0 comments on commit 04c7caf

Please sign in to comment.