Skip to content

Commit 5cd5014

Browse files
committed
numerical linear algebra - returning to the old way of displaying videos
1 parent 7432840 commit 5cd5014

File tree

1 file changed

+5
-15
lines changed
  • projects/math/numerical-linalg/notebooks

1 file changed

+5
-15
lines changed

projects/math/numerical-linalg/notebooks/svd.clj

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,8 @@
3232
(def video-path
3333
"notebooks/movie/Video_003.mp4")
3434

35-
;; A conveneince function for displaying a video
36-
;; in Quarto (till we handle this better in
37-
;; an upcoming Clay release):
38-
(defn video [path]
39-
(kind/md
40-
(str "{{"
41-
\<
42-
" video "
43-
path
44-
\>
45-
"}}")))
46-
47-
(video video-path)
35+
(kind/video
36+
{:src video-path})
4837

4938
;; Let us explore it with clj-media:
5039

@@ -118,7 +107,7 @@ first-image
118107
image->small-tensor
119108
bufimg/tensor->image)
120109

121-
;; Now let us collect the small tensors:
110+
;; Now let us collect the small tensors.
122111

123112
(def small-tensors
124113
(into []
@@ -310,4 +299,5 @@ first-image
310299
(clj-media/make-media frame-format generated-frames)
311300
target-path)
312301

313-
(video target-path)
302+
(kind/video
303+
:src target-path)

0 commit comments

Comments
 (0)