This tutorial explains how to download private or ratelimited (Sign in to confirm you're not a bot) videos & playlists, or rather: videos you need to be logged in for. I can't guarantee this will work ...
Running ML code on jupyter notebooks is good for quick prototyping and model exploration. On production level large scale model training settings we should prefer .py ML pipelines packed into a docker ...