Update 008.md

This commit is contained in:
Julie Kirsch 2025-03-03 22:20:08 +01:00
parent 8a0b9e0a1b
commit 6f407ddebe

View file

@ -7,8 +7,7 @@ To help you illustrate your content, it can be sueful to add some type of visual
In Jupyter Book, you can embed a YouTube video using the `{iframe}` directive, ensuring you use the embed URL format. In Jupyter Book, you can embed a YouTube video using the `{iframe}` directive, ensuring you use the embed URL format.
```md <!-- ```md
```{iframe} https://www.youtube.com/embed/x2eonqw5M6o ```{iframe} https://www.youtube.com/embed/x2eonqw5M6o
--- ---
width: 80% width: 80%
@ -17,7 +16,6 @@ name: my_linked_video
--- ---
<caption> <caption>
``` ```
``` ```
For example, the above code cell, will result in the following video. For example, the above code cell, will result in the following video.
@ -28,12 +26,11 @@ align: center
name: my_linked_video name: my_linked_video
--- ---
<caption> <caption>
``` ``` -->
To link and display an online figure, you can use the `{figure}` directive, which also allows captions and references. To link and display an online figure, you can use the `{figure}` directive, which also allows captions and references.
```md ```md
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg ```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
--- ---
width: 80% width: 80%
@ -42,7 +39,6 @@ name: my_linked_figure
--- ---
<caption> <caption>
``` ```
``` ```
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg ```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
@ -68,7 +64,6 @@ name: my_linked_figure
5. Copy this syntax and adjust the file name, width, alignment and caption. 5. Copy this syntax and adjust the file name, width, alignment and caption.
```md ```md
```{figure} figures/<new_figure>.PNG ```{figure} figures/<new_figure>.PNG
--- ---
width: 80% width: 80%
@ -77,7 +72,6 @@ name: my_new_figure
--- ---
<caption> <caption>
``` ```
``` ```
```{Warning} ```{Warning}