Jupyter Notebook Utilities for Python
notutils is a collection of convenience functions designed to enhance the Jupyter Notebook experience for Python users. It provides convenient tools for displaying URLs, embedding iframes, visualizing Google Books, toggling code visibility, creating interactive prediction widgets, and more. The library was designed for teaching, presentations, and interactive data exploration.
- Display clickable URLs in notebooks
- Embed external content with iframes
- Visualize Google Books inline
- Toggle code cell visibility for cleaner presentations
- Interactive basis function prediction widgets
- Display image and plot series with sliders
- Utilities for Jupyter/IPython integration
You can install notutils using Poetry or pip:
poetry add notutilspip install notutilsNote: notutils requires Python 3.9 or later. It depends on
IPython,ipywidgets,matplotlib, andnumpy.
from notutils import display_url, iframe_url, display_iframe_url
display_url("https://github.com/lawrennd/notutils")
iframe_html = iframe_url("https://www.example.com", width=800, height=400)
display_iframe_url("https://www.example.com", width=800, height=400)from notutils import display_url
display_url("https://www.python.org")from notutils import display_iframe_url
display_iframe_url("https://www.wikipedia.org", width=700, height=500)from notutils import code_toggle
code_toggle(start_show=False, message="Show/Hide code")from notutils import display_prediction
# Define your basis function and call display_prediction(...)- Python >= 3.9
- IPython
- ipywidgets
- matplotlib
- numpy
- Clone the repository:
git clone https://github.com/lawrennd/notutils.git cd notutils - Install dependencies:
poetry install
- Run tests:
poetry run pytest
- See the backlog and CIPs for project planning and improvement proposals.
Contributions are welcome! Please open issues or pull requests for bugs, features, or documentation improvements.
This project is licensed under the BSD 3-clause license. See LICENSE.txt for details.