ipyevents
A custom widget for returning mouse and keyboard events to Python
Decision gist · record as of 2026-08-14
Yes. ipyevents is actively maintained, has no known vulnerabilities, installs with low friction, and fills a clear gap in Jupyter interactivity. If you need to capture and respond to browser events in a notebook widget, it is the standard tool for that task.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires JupyterLab 3 or higher (stable releases 2.0.0+); earlier versions support JupyterLab 2 via ipyevents 0.9.0.
- Low friction: pure Python wheel with a single runtime dependency on ipywidgets.
- Actively maintained with recent commits and no known vulnerabilities.
License · maintenance · safety
BSD 3-clause (permissive) — BSD 3-clause permissive license allows use in commercial and private projects with minimal restrictions beyond retaining the license notice.
last release 2025-09-15 (333 days) · last repo commit 2026-06-22 · 120 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 557,082 downloads/mo, #6,014 on PyPI
Alternatives
Verify before relying
pip install ipyevents
from ipyevents import Event
from ipywidgets import Image
image = Image(value=open('image.png', 'rb').read())
events = Event(source=image, watched_events=['click'])
def on_click(change):
print(f"Clicked at {change['new']}")
events.on_msg(on_click)- Whether the package supports touch events or only mouse/keyboard events
- Performance characteristics when handling high-frequency event streams
- Compatibility with non-JupyterLab notebook environments (classic Jupyter, VS Code, etc.)
What it is and what it does
ipyevents is a Jupyter widget that bridges browser-side mouse and keyboard events to Python code running in notebook cells. It wraps any existing ipywidgets widget and emits events when users interact with it—clicking, typing, moving the mouse—allowing you to write event handlers in Python that respond to those interactions in real time.
The package is designed for interactive notebook workflows where you want to build responsive interfaces without leaving Python. Common use cases include adding keyboard shortcuts to widgets, detecting clicks on images, and building custom interactive visualizations. It depends only on ipywidgets and is compatible with modern Python versions (3.9 and above) and JupyterLab 3 or higher.
Use it for
- Add keyboard shortcuts to existing widgets in a notebook for faster user interaction
- Detect and respond to mouse clicks on an image to trigger analysis or display metadata
- Build interactive drawing or annotation tools by capturing mouse movement and click events
- Create custom interactive plots that respond to user clicks or key presses without rebuilding the widget
- Implement event-driven callbacks for data exploration workflows in Jupyter notebooks
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
ipyevents is actively maintained, has no known vulnerabilities, installs with low friction, and fills a clear gap in Jupyter interactivity. If you need to capture and respond to browser events in a notebook widget, it is the standard tool for that task.
Install
ipyevents on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency on ipywidgets. Actively maintained with recent commits and no known vulnerabilities.
Requires JupyterLab 3 or higher (stable releases 2.0.0+); earlier versions support JupyterLab 2 via ipyevents 0.9.0.
License in practice
BSD 3-clause permissive license allows use in commercial and private projects with minimal restrictions beyond retaining the license notice.
Quickstart
pip install ipyevents
from ipyevents import Event
from ipywidgets import Image
image = Image(value=open('image.png', 'rb').read())
events = Event(source=image, watched_events=['click'])
def on_click(change):
print(f"Clicked at {change['new']}")
events.on_msg(on_click)
Verify before relying
- Whether the package supports touch events or only mouse/keyboard events
- Performance characteristics when handling high-frequency event streams
- Compatibility with non-JupyterLab notebook environments (classic Jupyter, VS Code, etc.)
Package facts
| License | BSD 3-clause permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageipywidgets |
| Maintenance | Actively maintained 333 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 557,082 / month, #6,014 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Framework :: JupyterIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: ipyevents-2.0.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “jupyter widget mouse keyboard events”
- ipyeventsipyevents provides a Jupyter widget that captures mouse and keyboard…
- pynputPynput lets you programmatically control and monitor mouse and…
- pynput-robocorp-forkControls and monitors mouse and keyboard input devices across…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also ipywidgets · ipytree · ipylab · jupyterlab-widgets · ipympl · jupyter-ui-poll · evdev · ipyleaflet · sshkeyboard · pyiotools