Skip to main content

A Python package for notebooks.

Project description

NotebookFusion 🚀

PyPI version Python versions License

NotebookFusion is a lightweight Python package that allows you to seamlessly render live websites and embed YouTube videos directly inside Jupyter Notebooks, JupyterLab, and Google Colab environments.

No more switching browser tabs while coding — view documentation, tutorials, dashboards, or videos right beside your notebook cells.


✨ Features

  • 🌐 Website Rendering
    Display live HTTPS websites directly inside notebook output cells.

  • ▶️ YouTube Video Embedding
    Automatically parse and embed YouTube videos from standard URLs.

  • 📏 Customizable Viewport
    Easily adjust width and height.

  • Lightweight & Fast
    Built using standard IPython display utilities with minimal dependencies.

  • 📓 Notebook Friendly

    • Jupyter Notebook
    • JupyterLab
    • Google Colab
    • VS Code Notebook

📦 Installation

Install via pip:

pip install NotebookFusion


```bash 
pip install -r requirements_dev.txt

---

# 🚀 Quick Start

## ▶️ Render a YouTube Video

```python
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.google.com")

⚙️ Advanced Usage

Custom Width & Height

from NotebookFusion.site import render_site

render_site(
    "https://www.python.org",
    width="100%",
    height="600px"
)

Embed YouTube with Custom Size

from NotebookFusion.youtube import render_youtube_video

render_youtube_video(
    "https://www.youtube.com/watch?v=h25pePMdoPA",
    width="900",
    height="500"
)

🧠 Why NotebookFusion?

NotebookFusion helps Data Scientists, AI Engineers, Students, and Researchers by allowing them to:

  • Read documentation without leaving notebooks
  • Watch tutorials while coding
  • Display dashboards or live web apps
  • Improve notebook-based learning workflows
  • Create interactive demo notebooks

🖥️ Supported Platforms

Platform Supported
Jupyter Notebook
JupyterLab
Google Colab
VS Code Notebook

📂 Project Structure

NotebookFusion/
│
├── NotebookFusion/
│   ├── __init__.py
│   ├── site.py
│   └── youtube.py
│
├── README.md
├── requirements.txt
├── setup.py
└── LICENSE

🛠️ Development Setup

Clone the repository:

git clone https://github.com/yourusername/NotebookFusion.git

Move into the project directory:

cd NotebookFusion

Create a virtual environment:

conda create -n notebookfusion_env python=3.10 -y

Activate the environment:

conda activate notebookfusion_env

Install development dependencies:

pip install -r requirements_dev.txt

🤝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Open a Pull Request

📄 License

This project is licensed under the MIT License.


⭐ Support

If you find this project useful, consider giving it a ⭐ on GitHub!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notebookfusion-0.0.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notebookfusion-0.0.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file notebookfusion-0.0.1.tar.gz.

File metadata

  • Download URL: notebookfusion-0.0.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for notebookfusion-0.0.1.tar.gz
Algorithm Hash digest
SHA256 12dcdca0abd2551f29289eae9b06c7fa87316fd8a2a3453b8d651236307652a6
MD5 78af0f81655f7599cbb3c909187bd872
BLAKE2b-256 d4e945b4ff1958b4cabc229f441a8318147623fa48bed7bb5e80a35eef3e7f91

See more details on using hashes here.

File details

Details for the file notebookfusion-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: notebookfusion-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for notebookfusion-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 855a49cd253a0a5577e7f0d9765450e0fe2188667d948c6a80906c6732bce8d8
MD5 fca6cbea17c60bea5aa8deccb6218ce7
BLAKE2b-256 7df6f77005a23a8b66e3a68809d3181874141f62481dd058ca51893f66d1caeb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page