anywidget
custom jupyter widgets made easy
Decision gist · record as of 2026-08-14
Yes. anywidget is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. Install it if you need to build or use custom interactive widgets in Jupyter notebooks without the overhead of traditional Jupyter extension development. The three-dependency footprint and recent release history make it a safe, practical choice for notebook-based interactive computing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction: pure Python wheel with only three runtime dependencies (ipywidgets, psygnal, typing-extensions).
- Active maintenance with a recent release 109 days ago and 918 repository stars.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute anywidget and code built with it freely, including in commercial projects, with minimal restrictions.
last release 2026-04-27 (109 days) · last repo commit 2026-08-14 · 918 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,865,139 downloads/mo, #2,473 on PyPI
Alternatives
Verify before relying
pip install anywidget
import anywidget
import ipywidgets
class CounterWidget(anywidget.AnyWidget):
_esm = """export default { render({ model, el }) { el.textContent = model.get('value'); } };"""
value = ipywidgets.widget_int(0)- Whether the package works equally well in all listed environments (Jupyter, JupyterLab, Google Colab, VSCode, marimo) or if some have better support than others.
- Performance characteristics and memory footprint when running many widgets simultaneously in a notebook.
- How state synchronization between Python and JavaScript behaves under different network conditions.
What it is and what it does
anywidget is a framework for authoring custom interactive widgets that run in Jupyter notebooks and compatible environments. Instead of using complex scaffolding templates, you define a Python class that inherits from anywidget.AnyWidget, attach JavaScript code (inline or from a file), and optionally add CSS styling. The framework handles syncing state between Python and the browser, letting you write interactive controls without leaving your notebook or Python package.
The package is designed for both prototyping (write a widget directly in a .ipynb or .py file) and publishing (distribute your widget to others via PyPI like any normal Python package). It works across Jupyter, JupyterLab, Google Colab, VSCode, and marimo, with hot module replacement during development. Runtime dependencies are minimal: ipywidgets for the underlying widget protocol, psygnal for event signaling, and typing-extensions for type hints.
Use it for
- Build a custom data visualization or control panel in a notebook without learning Jupyter's widget extension architecture.
- Create a reusable interactive component and publish it to PyPI for others to install and use.
- Prototype a widget interactively in a notebook cell, then move the JavaScript to a separate file for cleaner development.
- Share interactive educational materials or dashboards that work consistently across Jupyter, Colab, and VSCode notebooks.
- Develop widgets that sync state between Python and browser-based UI without manual serialization.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
anywidget is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. Install it if you need to build or use custom interactive widgets in Jupyter notebooks without the overhead of traditional Jupyter extension development. The three-dependency footprint and recent release history make it a safe, practical choice for notebook-based interactive computing.
Install
anywidget on PyPI
Before you install
Low friction: pure Python wheel with only three runtime dependencies (ipywidgets, psygnal, typing-extensions). Active maintenance with a recent release 109 days ago and 918 repository stars.
Requires Python 3.10 or later.
License in practice
MIT license (permissive) means you can use, modify, and distribute anywidget and code built with it freely, including in commercial projects, with minimal restrictions.
Quickstart
pip install anywidget
import anywidget
import ipywidgets
class CounterWidget(anywidget.AnyWidget):
_esm = """export default { render({ model, el }) { el.textContent = model.get('value'); } };"""
value = ipywidgets.widget_int(0)
Verify before relying
- Whether the package works equally well in all listed environments (Jupyter, JupyterLab, Google Colab, VSCode, marimo) or if some have better support than others.
- Performance characteristics and memory footprint when running many widgets simultaneously in a notebook.
- How state synchronization between Python and JavaScript behaves under different network conditions.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesipywidgetspsygnaltyping-extensions |
| Maintenance | Actively maintained 109 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,865,139 / month, #2,473 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Framework :: JupyterFramework :: Jupyter :: JupyterLabFramework :: Jupyter :: JupyterLab :: 4Framework :: Jupyter :: JupyterLab :: ExtensionsFramework :: Jupyter :: JupyterLab :: Extensions :: PrebuiltLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3 |
Evidence: anywidget-0.11.0-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 custom widgets”
- anywidgetanywidget lets you build custom interactive widgets for Jupyter and…
- ipyvueProvides a Jupyter widget base for building interactive Vue.js…
- shinywidgetsEmbeds ipywidgets (Jupyter interactive widgets) directly into Shiny…
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 rerun-notebook · widgetsnbextension · ipytree · voila · jupyterlab-widgets · ipyvue · jupyter-leaflet · ipywidgets · ipyevents · pythreejs