Skip to main content

A Python package for enhanced Jupyter notebook functionality.

Project description

๐Ÿš€ NotebookFusion

PyPI version Python versions License

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

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

๐Ÿ“„ License

MIT License


โญ Support

If you like this project, give 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.3.tar.gz (9.4 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.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

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

Hashes for notebookfusion-0.0.3.tar.gz
Algorithm Hash digest
SHA256 482400f9aff0bfaf1b13936a1cd3ca383513000f553c2480afc619170c05907a
MD5 bf5ee8ab25887a64e1ec206249a187a9
BLAKE2b-256 74754ef6c6f94ef453fb84a47b4c626c8fdca8d51f2e7c5ba19d1de924b46470

See more details on using hashes here.

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

Hashes for notebookfusion-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 12e790b7d3c11fd79fc13d92803f39e3e02deb2c6705ebc9db6011bee82b51fd
MD5 10d02f649ccd2e6bb519beac48ede158
BLAKE2b-256 07dd66c419839fcffd28fcdf5123891a7d6533619f99d2fee6ce9585bae2d303

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