ytnb-embed
Overview
ytnb-embed provides a simple and elegant way to embed YouTube videos directly in Jupyter Notebooks. Built with privacy and simplicity in mind, it uses YouTube's privacy-enhanced mode (youtube-nocookie.com) to protect user privacy while maintaining full video functionality.
Perfect for data scientists, educators, and researchers who want to enrich their notebooks with video content without compromising on privacy or simplicity.
Features
- ๐ฅ One-line embedding - Embed any YouTube video with a single function call
- ๐ Privacy-first - Uses
youtube-nocookie.comfor enhanced privacy protection - ๐ Fully customizable - Adjust video player dimensions to fit your needs
- ๐ก๏ธ Smart URL parsing - Handles all YouTube URL formats automatically
- ๐ Built-in logging - Comprehensive logging for debugging and monitoring
- โ Type hints - Full type annotation support for better IDE integration
- ๐งช Well tested - Includes unit and integration tests
- ๐ Lightweight - Minimal dependencies, maximum performance
Quick Installation
Quick Example
from ytnb_embed import embed_yt
# Embed a YouTube video
embed_yt("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
Next Steps
- Installation Guide - Detailed installation instructions
- Quick Start - Get started in minutes
- Usage Guide - Learn all the features
- API Reference - Complete API documentation