jupyter-ai-persona-manager
The core manager & registry for AI personas in Jupyter AI
What it is and what it does
jupyter_ai_persona_manager is the core registry and lifecycle manager for AI personas in Jupyter AI chat environments. It provides BasePersona (an abstract base class for custom assistants), PersonaManager (for registration and lifecycle), and entry-point-based discovery so that personas can be packaged as plugins and automatically discovered. Each persona is analogous to a bot in other chat systems—a distinct AI assistant with its own behavior, model, and capabilities that can coexist in the same chat.
Developers use it to create custom personas by subclassing BasePersona, implementing a process_message method, and registering via Python entry points or by placing persona files in .jupyter/personas/. The package handles avatar serving, multi-user awareness, and automatic discovery. It integrates with jupyterlab-chat and jupyter-server, making it the foundation for extending Jupyter AI with custom assistants.
Use it for:
- Create a custom code-review assistant persona that analyzes notebook cells and provides feedback on code quality and style.
- Build a research-focused persona that integrates with external APIs (e.g., Ollama, OpenAI) to provide domain-specific answers in Jupyter chat.
- Develop a local development helper persona loaded from .jupyter/personas/ for iterative testing without restarting JupyterLab.
- Register multiple personas via entry points so users can @-mention different AI assistants for different tasks in the same chat.
- Extend Jupyter AI with a persona that queries internal documentation or knowledge bases specific to an organization.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides the foundational infrastructure for managing and registering AI personas (custom chat assistants) in Jupyter AI environments, including base classes, lifecycle management, and automatic discovery via entry points.
Yes, if you are running JupyterLab 4.0+ and want to create or use custom AI personas in Jupyter AI chat. The package is actively maintained, has low install friction, carries no security vulnerabilities, and is permissively licensed. Install it as a dependency when building persona plugins, or as a base package if you intend to develop custom personas locally.
Install
jupyter-ai-persona-manager on PyPI
pip
pip install jupyter-ai-persona-manageruv
uv add jupyter-ai-persona-managerpoetry
poetry add jupyter-ai-persona-managerInstalling jupyter-ai-persona-manager
Before you install
Low install friction with a pure-Python wheel. Active maintenance (last commit 2026-08-12, released 2026-07-23) and current Python support (3.10–3.14). Depends on jupyter-server, jupyterlab-chat, and other Jupyter ecosystem packages, all standard in JupyterLab environments.
License in practice
BSD 3-Clause License permits use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects. No copyleft obligations.
Quickstart
pip install jupyter_ai_persona_manager
from jupyter_ai_persona_manager import BasePersona, PersonaDefaults
from jupyterlab_chat.models import Message
class MyPersona(BasePersona):
@property
def defaults(self):
return PersonaDefaults(
name="MyPersona",
description="Custom assistant",
system_prompt="You are helpful."
)
async def process_message(self, message: Message):
self.send_message(f"You said: {message.body}")
Requires JupyterLab >= 4.0.0 and Python >= 3.10. Personas are discovered via entry points or from .jupyter/personas/ directory; restart JupyterLab or use /refresh-personas command to load new personas.
Verify before relying
- Whether avatar serving at /api/ai/avatars/{filename} works reliably when multiple personas share the same filename.
- Performance characteristics when many personas are registered or when processing high-volume messages.
- Compatibility with Jupyter AI versions other than the latest.
Package facts
| License | BSD 3-Clause License Copyright (c) 2025, Project Jupyter 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.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — importlib-metadata, jupyter-ai-router, jupyter-server-fileid, jupyter-server, jupyterlab-chat, pycrdt, pydantic |
| Maintenance | actively maintained — 22 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 99,542/month — #13,016 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jupyter_ai_persona_manager-0.1.2-py3-none-any.whl
Keywords: jupyter, jupyterlab, jupyterlab-extension
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
jupyter-ai-acp-clientProvides a JupyterLab extension that integrates…
permissive · top 15,000 on PyPI
jupyter-ai-chat-commandsProvides default chat commands for Jupyter AI,…
permissive · top 15,000 on PyPI
jupyter-ai-routerProvides the core message routing layer for…
permissive · top 15,000 on PyPI
jupyterlab-commands-toolkitExposes JupyterLab commands to Python code and…
permissive · top 15,000 on PyPI
jupyter-aiJupyter AI is a JupyterLab extension that…
permissive · top 15,000 on PyPI
jupyterlab-chatA JupyterLab extension that adds a chat…
permissive · top 15,000 on PyPI
jupyter-ai-magicsJupyter AI Magics provides a JupyterLab…
permissive · top 15,000 on PyPI
jupyter-ai-toolsA Jupyter Server extension that exposes file…
permissive · top 15,000 on PyPI
ipylabipylab lets you control JupyterLab's interface…
permissive · top 15,000 on PyPI
jupyter-mcp-toolsExposes JupyterLab commands as MCP (Model…
permissive · top 15,000 on PyPI