pyviz-comms
A JupyterLab extension for rendering HoloViz content.
What it is and what it does
pyviz_comms is a communication bridge for Jupyter environments that allows Python code running in the kernel to exchange messages with JavaScript code in the browser frontend. It abstracts away the complexity of Jupyter's comm protocol, providing a simple API for bidirectional messaging. The package is designed primarily to support HoloViz visualization tools (like HoloViews, Panel, and Datashader) in rendering interactive plots and dashboards, though it can be used by any tool that needs kernel-frontend communication.
The package consists of a Python component and an optional JupyterLab extension. For JupyterLab 3.0 and later, the extension is automatically included when you install the Python package via pip or conda. The package supports modern Python versions (3.8 through 3.11) and is actively maintained with a stable, production-ready status.
Use it for:
- Building interactive HoloViz visualizations that respond to user input in Jupyter notebooks and JupyterLab.
- Enabling real-time communication between Python analysis code and browser-based UI components in Panel dashboards.
- Creating custom Jupyter extensions that need to exchange data between kernel and frontend without writing low-level comm protocol code.
- Supporting collaborative visualization tools where Python computations drive live JavaScript rendering.
- Integrating third-party JavaScript libraries with Python-based Jupyter workflows via message passing.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides bidirectional communication between Python and JavaScript in Jupyter notebooks and JupyterLab, enabling HoloViz tools to send and receive messages across the kernel-frontend boundary.
Yes. Install if you're building or using HoloViz tools in Jupyter, or if you need a straightforward way to add bidirectional Python-JavaScript communication to a Jupyter extension. The package is low-friction, actively maintained, permissively licensed, and has no known vulnerabilities. It's a stable dependency for interactive visualization workflows.
Install
pyviz-comms on PyPI
pip
pip install pyviz-commsuv
uv add pyviz-commspoetry
poetry add pyviz-commsInstalling pyviz-comms
Before you install
Low friction: pure Python wheel with a single dependency (param). Actively maintained with recent commits and stable status. Automatically bundled with JupyterLab 3.0+.
License in practice
BSD 3-Clause License permits commercial and private use with minimal restrictions; you must retain copyright notice and disclaimer in distributions.
Quickstart
pip install pyviz_comms
from pyviz_comms import Comm
comm = Comm(target_name='my_target')
JupyterLab 3.0+ includes the extension automatically; older JupyterLab versions require separate manual extension installation.
Verify before relying
- Whether the package works with non-Jupyter Python environments or is strictly Jupyter-dependent.
- Performance characteristics or message throughput limits for high-frequency communication scenarios.
- Specific HoloViz tool version requirements beyond the general compatibility table provided.
Package facts
| License | BSD 3-Clause License Copyright (c) 2023, Philipp Rudiger All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — param |
| Maintenance | actively maintained — 420 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,343,283/month — #3,121 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyviz_comms-3.0.6-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
jupyterlab-chatA JupyterLab extension that adds a chat…
permissive · top 15,000 on PyPI
commProvides a protocol-compliant Comm…
permissive · top 1,000 on PyPI
nbclassicProvides the classic Jupyter Notebook interface…
permissive · top 5,000 on PyPI
jupyter-ai-chat-commandsProvides default chat commands for Jupyter AI,…
permissive · top 15,000 on PyPI
ipymplipympl enables interactive matplotlib plots in…
permissive · top 5,000 on PyPI
jupyter-nbmodel-clientProgrammatically interact with live Jupyter…
permissive · top 15,000 on PyPI
holoviewsHoloViews lets you declare data structure and…
permissive · top 5,000 on PyPI
jupyterlab-widgetsEnables Jupyter/IPython widgets to render and…
permissive · top 1,000 on PyPI
jupyterlab_notebook_awarenessA JupyterLab extension that tracks which…
permissive · top 15,000 on PyPI
jupyter-server-documentsA JupyterLab extension that moves document…
permissive · top 15,000 on PyPI