Pydantic AI Kernel
This is wrapper around pydantic-ai agent, that allows to request it through jupyter kernel messaging protocol.
We support :
- streaming output,
- multi-type output (markdown, raw text), and soon : images, audio, jupyter widgets
- API's for accessing the agent :
- classical ZeroMQ jupyter kernel API
- web socket API, with jupyter kernel gateway
- user-approval (human in the loop) with input_request messages
- any pydantic-ai agent can be wrapped in this kernel
- basic configuration through metakernel magics (agent history, tool list, mcp server, output formatter, ...)
Documentation : https://mariusgarenaux.github.io/pydantic-ai-kernel
Getting started
Within a python venv,
pip install pydantic-ai-kernel
Any jupyter frontend should be able to dialog with this kernel, for example :
• CLI : Install jupyter-console (pip install jupyter-console); and run jupyter console --kernel pydantic_ai
• Notebook (you might need to restart the IDE) : select 'pydantic_ai' on top right of the notebook
• Jupyter Lab : see [Jupyter Lab]
• jpterm : a fancy jupyter lab interface, in the terminal ! https://davidbrochart.github.io/jpterm/
• euporie : a fancy kernel frontend : https://euporie.readthedocs.io/en/latest/pages/installation.html
• Silik Signal Messaging : Access the kernel through Signal Message Application, see here
For example :
jupyter console --kernel pydantic_ai
In the kernel, send :
%config
to create the config file, and start chat. See documentation for more informations.
%help <magic_name>and%magicwill give you appropriate documentation
Metadata
Release files for pydantic-ai-kernel 1.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydantic_ai_kernel-1.5.4.tar.gz | 25.6 kB | Without provenance | Details for pydantic_ai_kernel-1.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydantic_ai_kernel-1.5.4-py3-none-any.whl | Python 3 | none | any | Details for pydantic_ai_kernel-1.5.4-py3-none-any.whl |
Total release size: 62.6 kB
Release files / pydantic_ai_kernel-1.5.4.tar.gz
| Download URL | pydantic_ai_kernel-1.5.4.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ac20d7289a4f6313ccae1c4cab07a73d325f989564addc4e68b3b0d5dcbb995
|
|
BLAKE2b-256 checksum How to use checksums |
80c2856da4e62971f5a9432d7958722f60e67f7f39ea684459c6e49b759fd6b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.3
|
Release files / pydantic_ai_kernel-1.5.4-py3-none-any.whl
| Download URL | pydantic_ai_kernel-1.5.4-py3-none-any.whl |
|---|---|
| Size | 37.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e24027e9774f0c787abe6cb0bbf4a170ff3a91702a4d877579da3f113488fc5
|
|
BLAKE2b-256 checksum How to use checksums |
72ab0a0776403fcc4af3e7a0b32672a19036e8c7f39272ae2f6d40c445a12b9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.3
|
Security for pydantic-ai-kernel 1.5.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.