mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
fixing embed
This commit is contained in:
parent
7b51db6960
commit
313d811ad1
1 changed files with 24 additions and 4 deletions
|
|
@ -5,19 +5,39 @@ To help you illustrate your content, it can be sueful to add some type of visual
|
|||
`````{tab-set}
|
||||
````{tab-item} Linking
|
||||
|
||||
Embed a video
|
||||
In Jupyter Book, you can embed a YouTube video using the `{iframe}` directive, ensuring you use the embed URL format.
|
||||
```md
|
||||
|
||||
```{embed} https://www.youtube.com/watch?v=gbBsWo6em4c
|
||||
```{iframe} https://www.youtube.com/embed/watch?v=gbBsWo6em4c
|
||||
:width: 700
|
||||
:height: 400
|
||||
```
|
||||
also video
|
||||
```
|
||||
For example, the above code cell, will result in the following video.
|
||||
|
||||
```{iframe} https://www.youtube.com/embed/watch?v=gbBsWo6em4c
|
||||
:width: 700
|
||||
:height: 400
|
||||
```
|
||||
|
||||
To link and display an online figure, you can use the `{figure}` directive, which also allows captions and references.
|
||||
|
||||
```md
|
||||
|
||||
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
|
||||
:width: 700
|
||||
:height: 400
|
||||
|
||||
My new figure
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
|
||||
:width: 700
|
||||
:height: 400
|
||||
|
||||
My new figure
|
||||
```
|
||||
|
||||
````
|
||||
````{tab-item} Embedding
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue