Skip to content

Commit 6a2a8dc

Browse files
committed
numerical linear algebra - svd - using Quarto to display images (temporary solution)
1 parent c66febe commit 6a2a8dc

File tree

1 file changed

+14
-16
lines changed
  • projects/math/numerical-linalg/notebooks

1 file changed

+14
-16
lines changed

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

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

35-
(kind/video
36-
{:src video-path})
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)
3748

3849
;; Let us explore it with clj-media:
3950

@@ -299,17 +310,4 @@ first-image
299310
(clj-media/make-media frame-format generated-frames)
300311
target-path)
301312

302-
(kind/video
303-
{:src target-path})
304-
305-
306-
307-
308-
309-
310-
311-
312-
313-
314-
315-
313+
(video target-path)

0 commit comments

Comments
 (0)