File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 3
3
{:nextjournal.clerk/visibility {:code :hide :result :hide }
4
4
:nextjournal.clerk/no-cache true }
5
5
(:require [nextjournal.clerk :as clerk]
6
- [nextjournal.clerk.viewer :as v]))
6
+ [nextjournal.clerk.tap :as tap]
7
+ [nextjournal.clerk.window :as window]))
7
8
8
9
(clerk/window! :my-window (clerk/html [:div.w-8.h-8.bg-green-500 ]))
9
10
10
11
(comment
12
+ (clerk/destroy-window! :my-window )
13
+ (clerk/destroy-all! )
14
+ (clerk/window! ::window/taps )
11
15
(tap> (clerk/html [:div.w-8.h-8.bg-green-500 ]))
12
- (tap> (clerk/plotly {:data [{:x [1 2 3 4 ]}]})))
16
+ (tap> (clerk/plotly {:data [{:x [1 2 3 4 ]}]}))
17
+ (tap/reset-taps! ))
Original file line number Diff line number Diff line change 72
72
#_(show! (java.io.StringReader. " ;; # In Memory Notebook 👋\n (+ 41 1)" ))
73
73
74
74
(defn window! " todo" [& args] (apply window/open! args))
75
- (defn destroy-window! " todo" [id] (window/destroy! id))
75
+ (def destroy-window! " todo" window /destroy! )
76
+ (def destroy-all-windows! " todo" window /destroy-all! )
76
77
77
78
(defn recompute!
78
79
" Recomputes the currently visible doc, without parsing it."
You can’t perform that action at this time.
0 commit comments