jupyter-kernel-client
What it is and what it does
Jupyter Kernel Client is a Python library that lets you programmatically connect to and execute code in Jupyter Kernels running on a remote Jupyter Server. It communicates via HTTP and WebSocket protocols to send code to a kernel and retrieve execution results, outputs, and status. The package wraps the kernel protocol in a simple context-manager API and also provides an optional interactive console (Konsole) for REPL-style interaction.
Typical use cases include automating code execution in a kernel from an external script, building tools that need to run code in a Jupyter environment without launching a notebook interface, or integrating Jupyter computation into larger applications. The package depends on standard Jupyter libraries (jupyter-client, jupyter-core, traitlets) and network utilities (requests, websocket-client) to handle the protocol details.
Use it for:
- Automate code execution in a remote Jupyter kernel from a Python script or application
- Build a custom REPL or interactive console that connects to an existing Jupyter kernel
- Integrate Jupyter computation into a larger application or service without a notebook UI
- Execute code in a kernel and capture structured results (outputs, execution count, status)
- Connect to an existing kernel in JupyterLab and run code programmatically
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Connects to live Jupyter Kernels over HTTP and WebSocket to execute code remotely, and provides an interactive console (REPL) for kernel interaction.
Yes. The package is actively maintained, has low install friction, carries a permissive BSD license, and solves a clear problem—remote kernel execution—for developers building Jupyter-integrated tools. No known vulnerabilities. Install if you need to execute code in a Jupyter kernel from outside a notebook.
Install
jupyter-kernel-client on PyPI
pip
pip install jupyter-kernel-clientuv
uv add jupyter-kernel-clientpoetry
poetry add jupyter-kernel-clientInstalling jupyter-kernel-client
Before you install
Low friction install with 7 runtime dependencies, all standard Jupyter ecosystem packages. Actively maintained with a release 6 days ago and recent commits.
License in practice
BSD 3-Clause License permits commercial and private use with attribution and liability disclaimer; no restrictions on distribution or modification.
Quickstart
pip install jupyter-kernel-client
from jupyter_kernel_client import JupyterKernelClient
with JupyterKernelClient(server_url="http://localhost:8888", token="MY_TOKEN") as kernel:
reply = kernel.execute("print('hello')")
print(reply)
Requires a running Jupyter Server with ipykernel; Python >=3.10
Verify before relying
- Performance characteristics and latency when executing code over HTTP/WebSocket
- Support for kernel features like interrupt, restart, and shutdown operations
- Compatibility with different Jupyter Server versions beyond current release
Package facts
| License | BSD 3-Clause License Copyright (c) 2025, Datalayer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — jupyter-client, jupyter-core, jupyter-mimetypes, requests, traitlets, typing-extensions, websocket-client |
| Maintenance | actively maintained — 6 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 121,133/month — #11,992 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jupyter_kernel_client-1.0.1-py3-none-any.whl
Keywords: Jupyter
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
commProvides a protocol-compliant Comm…
permissive · top 1,000 on PyPI
jupyter-nbmodel-clientProgrammatically interact with live Jupyter…
permissive · top 15,000 on PyPI
jupyter-kernel-gatewayJupyter Kernel Gateway is a web server that…
permissive · top 5,000 on PyPI
spyder-kernelsProvides Jupyter kernels that integrate Python…
permissive · top 15,000 on PyPI
ipykernelProvides the IPython kernel backend that powers…
permissive · top 1,000 on PyPI
pykodiPyKodi provides an async Python interface to…
permissive · top 15,000 on PyPI
jupyter-clientImplements the Jupyter protocol and provides…
permissive · top 1,000 on PyPI
jupyter-consoleJupyter Console is a terminal-based frontend…
permissive · top 5,000 on PyPI
bash_kernelEnables running and interacting with bash…
permissive · top 15,000 on PyPI
jupyter-serverJupyter Server provides the backend services,…
permissive · top 1,000 on PyPI