diff --git a/docs/clay_book.emmy_viewers.html b/docs/clay_book.emmy_viewers.html index 587219b..44911c1 100644 --- a/docs/clay_book.emmy_viewers.html +++ b/docs/clay_book.emmy_viewers.html @@ -235,7 +235,7 @@
:color :blue}) (mafs/of-x e/sin {
- (reagent.core/with-let"y0001" " return Math.sin(y0001);")]
- [G__86251 (js/Function. :y G__86251}]) [mafs.plot/OfX {
By default, it is inferred to be of :kind/emmy-viewers
, and is handle accordingly.
Equivalently, we could also handle it more explicitly with :kind/reagent
:
Try moving the pink mark. 👆
defn my-fn [x]
@@ -287,7 +287,7 @@ (
:z my-fn :samples 256}) (plot/of-x {
From the reagent tutorial:
@@ -362,7 +362,7 @@ (kind/reagent:input {:type "button" :value "Click me!"
[:on-click #(swap! *click-count inc)}]])))])
take 5 people-as-maps) (
:preferred-language "clojurescript", :age 74}
- ({:preferred-language "babashka", :age 20}
- {:preferred-language "clojurescript", :age 34}
- {:preferred-language "clojurescript", :age 93}
- {:preferred-language "babashka", :age 29}) {
:preferred-language "clojurescript", :age 96}
+ ({:preferred-language "babashka", :age 27}
+ {:preferred-language "clojure", :age 40}
+ {:preferred-language "babashka", :age 97}
+ {:preferred-language "clojure", :age 52}) {
take 5 people-as-vectors) (
"clojurescript" 74]
- (["babashka" 20]
- ["clojurescript" 34]
- ["clojurescript" 93]
- ["babashka" 29]) [
"clojurescript" 96]
+ (["babashka" 27]
+ ["clojure" 40]
+ ["babashka" 97]
+ ["clojure" 52]) [
->> people-as-vectors
@@ -569,11 +569,11 @@ (<
set)
"babashka" 29]
- #{["clojurescript" 34]
- ["clojurescript" 74]
- ["clojurescript" 93]
- ["babashka" 20]} [
"clojure" 40]
+ #{["clojure" 52]
+ ["babashka" 97]
+ ["babashka" 27]
+ ["clojurescript" 96]} [
When something inside needs to be displayed in a special kind of way, the data structures are printed in a way that makes that clear.
preferred-language | age |
---|---|
clojurescript | 74 |
babashka | 20 |
clojurescript | 34 |
clojurescript | 93 |
babashka | 29 |
clojurescript | 97 |
babashka | 47 |
clojure | 56 |
clojurescript | 89 |
clojure | 32 |
clojurescript | 76 |
clojurescript | 20 |
clojure | 49 |
clojurescript | 2 |
clojure | 58 |
clojure | 51 |
babashka | 6 |
babashka | 48 |
clojure | 64 |
babashka | 99 |
clojure | 35 |
babashka | 4 |
babashka | 0 |
clojurescript | 60 |
clojurescript | 51 |
babashka | 67 |
clojurescript | 75 |
clojurescript | 7 |
clojure | 51 |
preferred-language | age |
---|---|
clojurescript | 96 |
babashka | 27 |
clojure | 40 |
babashka | 97 |
clojure | 52 |
clojure | 46 |
babashka | 43 |
babashka | 3 |
clojure | 77 |
clojure | 96 |
babashka | 86 |
clojure | 2 |
babashka | 27 |
babashka | 87 |
babashka | 1 |
clojurescript | 29 |
clojurescript | 3 |
clojure | 9 |
clojure | 99 |
clojurescript | 52 |
clojurescript | 12 |
babashka | 73 |
clojure | 13 |
babashka | 76 |
clojure | 93 |
clojure | 70 |
clojure | 33 |
clojurescript | 21 |
clojure | 86 |
preferred-language | age |
---|---|
clojurescript | 74 |
babashka | 20 |
clojurescript | 34 |
clojurescript | 93 |
babashka | 29 |
clojurescript | 97 |
babashka | 47 |
clojure | 56 |
clojurescript | 89 |
clojure | 32 |
clojurescript | 76 |
clojurescript | 20 |
clojure | 49 |
clojurescript | 2 |
clojure | 58 |
clojure | 51 |
babashka | 6 |
babashka | 48 |
clojure | 64 |
babashka | 99 |
clojure | 35 |
babashka | 4 |
babashka | 0 |
clojurescript | 60 |
clojurescript | 51 |
babashka | 67 |
clojurescript | 75 |
clojurescript | 7 |
clojure | 51 |
preferred-language | age |
---|---|
clojurescript | 96 |
babashka | 27 |
clojure | 40 |
babashka | 97 |
clojure | 52 |
clojure | 46 |
babashka | 43 |
babashka | 3 |
clojure | 77 |
clojure | 96 |
babashka | 86 |
clojure | 2 |
babashka | 27 |
babashka | 87 |
babashka | 1 |
clojurescript | 29 |
clojurescript | 3 |
clojure | 9 |
clojure | 99 |
clojurescript | 52 |
clojurescript | 12 |
babashka | 73 |
clojure | 13 |
babashka | 76 |
clojure | 93 |
clojure | 70 |
clojure | 33 |
clojurescript | 21 |
clojure | 86 |
9) (random-vega-lite-plot
When the vega/vega-lite data is given in CSV format, Clay will serve it in a separate CSV file alongside the generated HTML.
-> {:data {:values "x,y
@@ -2133,7 +2133,7 @@ (;; Note we need to mention the dependency:
:html/deps [:leaflet]}) {
Using 3Dmol within your code (inspired by these examples):
defonce pdb-2POR
@@ -2444,7 +2444,7 @@ (;; Note we need to mention the dependency:
:html/deps [:three-d-mol]}) {
kind/vega-lite
kind/vega-lite
kind/reagent
+kind/vega-lite
kind/vega-lite
kind/reagent
[
_unnamed [3 2]:
+[
_unnamed [3 2]:
0 | -0.93640168 | +0.04557120 | ||||||
1 | -0.76366195 | +0.24707522 | ||||||
2 | -0.23883701 | +0.93636611 |