split-lecture is a simple tool to synchronize YouTube videos and Jupyter Notebooks. It has been built to support blended learning for a Python programming course delivered at the University of Manchester, but can be used for other courses as well. The only requirement is that the lecture notes are available in HTML format and navigatable with anchor links.
split-lecture is written in JavaScript and very easy to set up. Simply follow the below steps:
- On your webserver, create a new folder.
- In this folder, place your Jupyter Notebook file as an HTML export. (In Jupter, view the notebook and go to File -> Download as -> html to produce this HTML file.)
- In that same folder, place the files
index.html
andcustom.css
from the repository. - Open
index.html
and edit lines 11-37 as follows:- line 11: insert the title of your lecture
- line 13: change the value of
notebookUrl
to the name the exported HTML file from step 2. - line 14: change the value of
ytVideoId
to the id of your YouTube video. Example: If your video URL is https://www.youtube.com/watch?v=yZH74R58h40, then the id isyZH74R58h40
- line 15ff: change the timestamps and link names so that they coincide with the timings in the YouTube video and the anchor links in the exported HTML file from step 2. In order to obtain the anchor links, simply hover over a heading in the HTML file and read off the URL part following the
#
symbol.
That's it. I hope you find split-lecture useful for your teaching. Feel free to modify it to your needs.
Any comments and feedback are appreciated, either by raising them as issues or dropping me an email: [email protected]
Thanks to the jQuery team and Rick Strahl for the jQuery Resizable plugin. Thanks also to many students who have given useful feedback.