Skip to content

Commit 630f7ec

Browse files
committed
improve display of embedded videos
1 parent 4ef41ab commit 630f7ec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

assignments/open_ended.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ sheet = sheets.InteractiveSheet(url=sheet_url, include_column_headers=True)
107107
df = sheet.as_df()
108108
```
109109

110-
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/D5MUsMim_is?start=242" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
110+
<iframe src="https://www.youtube-nocookie.com/embed/D5MUsMim_is?start=242" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen style="aspect-ratio: 16 / 9;"></iframe>
111111

112112
### Reading files in Python
113113

lecture_0.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,8 @@
726726
"text/html": [
727727
"\n",
728728
" <iframe\n",
729-
" width=\"640\"\n",
730-
" height=\"360\"\n",
729+
" width=\"560\"\n",
730+
" height=\"315\"\n",
731731
" src=\"https://www.youtube.com/embed/cDA3_5982h8\"\n",
732732
" frameborder=\"0\"\n",
733733
" allowfullscreen\n",
@@ -736,7 +736,7 @@
736736
" "
737737
],
738738
"text/plain": [
739-
"<IPython.lib.display.IFrame at 0x107081bd0>"
739+
"<IPython.lib.display.IFrame at 0x10a699fa0>"
740740
]
741741
},
742742
"execution_count": 1,
@@ -747,7 +747,7 @@
747747
"source": [
748748
"from IPython.display import IFrame\n",
749749
"\n",
750-
"IFrame(\"https://www.youtube.com/embed/cDA3_5982h8\", width=640, height=360)"
750+
"IFrame(\"https://www.youtube.com/embed/cDA3_5982h8\", width=560, height=315)"
751751
]
752752
},
753753
{

0 commit comments

Comments
 (0)