A Python package for enhanced Jupyter notebook functionality.
Project description
๐ NotebookFusion
NotebookFusion makes it easy to embed live websites and YouTube videos directly inside Jupyter Notebook, JupyterLab, Google Colab, and VS Code notebook outputs.
No more switching browser tabs while coding โ keep documentation, tutorials, dashboards, and media next to your notebook cells.
โจ Features
- Website Rendering โ Display live HTTPS websites inside notebook output cells using
IFrame - YouTube Embedding โ Automatically embed YouTube videos from standard YouTube URLs
- Customizable Viewport โ Control width and height for both website and video embeds
- Lightweight โ Minimal dependencies using IPython display utilities
- Notebook Friendly โ Works with Jupyter Notebook, JupyterLab, Google Colab, and VS Code Notebook
๐ฆ Installation
pip install NotebookFusion
For development:
pip install -r requirements_dev.txt
๐ Quick Start
Embed a YouTube Video
from NotebookFusion.youtube import render_youtube_video
render_youtube_video("https://www.youtube.com/watch?v=h25pePMdoPA&t=712s")
Render a Website
from NotebookFusion.site import render_site
render_site("https://www.python.org")
โ๏ธ Advanced Usage
Custom Website Size
from NotebookFusion.site import render_site
render_site(
"https://www.python.org",
width="100%",
height="600"
)
Custom YouTube Size
from NotebookFusion.youtube import render_youtube_video
render_youtube_video(
"https://www.youtube.com/watch?v=h25pePMdoPA",
width=900,
height=500
)
๐ Module Summary
NotebookFusion.site.render_site(URL, width='100%', height='600')NotebookFusion.youtube.render_youtube_video(url, width=780, height=440)
๐ง Why NotebookFusion?
- Read documentation and tutorials inside notebooks
- Watch tutorials without leaving your code environment
- Embed dashboards and live websites for demos and teaching
- Improve interactive learning workflows
๐ฅ๏ธ Supported Platforms
| Platform | Supported |
|---|---|
| Jupyter Notebook | โ |
| JupyterLab | โ |
| Google Colab | โ |
| VS Code Notebook | โ |
๐ Project Structure
NotebookFusion/
โโโ LICENSE
โโโ README.md
โโโ requirements.txt
โโโ requirements_dev.txt
โโโ setup.py
โโโ pyproject.toml
โโโ src/
โโโ NotebookFusion/
โโโ __init__.py
โโโ custom_exception.py
โโโ logger.py
โโโ site.py
โโโ youtube.py
๐ ๏ธ Development Setup
git clone https://github.com/foysalpranto121/NotebookFusion.git
cd NotebookFusion
conda create -n notebookfusion_env python=3.10 -y
conda activate notebookfusion_env
pip install -r requirements_dev.txt
๐ค Contributing
- Fork the repository
- Create a new branch
- Commit your changes
- Open a Pull Request
๐ License
MIT License
โญ Support
If you like this project, give it a โญ on GitHub!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file notebookfusion-0.0.3.tar.gz.
File metadata
- Download URL: notebookfusion-0.0.3.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
482400f9aff0bfaf1b13936a1cd3ca383513000f553c2480afc619170c05907a
|
|
| MD5 |
bf5ee8ab25887a64e1ec206249a187a9
|
|
| BLAKE2b-256 |
74754ef6c6f94ef453fb84a47b4c626c8fdca8d51f2e7c5ba19d1de924b46470
|
File details
Details for the file notebookfusion-0.0.3-py3-none-any.whl.
File metadata
- Download URL: notebookfusion-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12e790b7d3c11fd79fc13d92803f39e3e02deb2c6705ebc9db6011bee82b51fd
|
|
| MD5 |
10d02f649ccd2e6bb519beac48ede158
|
|
| BLAKE2b-256 |
07dd66c419839fcffd28fcdf5123891a7d6533619f99d2fee6ce9585bae2d303
|