Skip to main content

ipylangchat 🤖💬

A minimal Chat UI Jupyter Widget for language models. Built with anywidget 💪.

Lets you talk to a LangChain runnable or agent, such as a conversational RAG, directly in a Jupyter environment (Notebook, Lab, Google Colab, VSCode). No need to serve a web application.

See the RAG example notebook.

Usage

[!NOTE] This is still a very basic implementation that demonstrates the power of the anywidget framework to bring custom UIs into Jupyter.

Right now, the widget accepts a chain using a prompt template that takes in human input and keeps track of chat history. See the langchain docs and our example of a conversational RAG on the anywidget documentation.

import ipylangchat

ipylangchat.ChatUIWidget(chain)

Installation

pip install ipylangchat

Development installation

Create a virtual environment and and install ipylangchat in editable mode with the optional development dependencies:

python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

Open example.ipynb in JupyterLab, VS Code, or your favorite editor to start developing. Changes made in src/ipylangchat/static/ will be reflected in the notebook.

Metadata

Release files for ipylangchat 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipylangchat 0.0.2
File Size Uploaded
ipylangchat-0.0.2.tar.gz 109.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ipylangchat 0.0.2
File Interpreter ABI Platform
ipylangchat-0.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 115.1 kB

Release files / ipylangchat-0.0.2.tar.gz

Download URL ipylangchat-0.0.2.tar.gz
Size 109.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1d04660080f6c3321745326630f8756a51f0a614493f4591ace7cefc8933b2fd
BLAKE2b-256 checksum
How to use checksums
a9fa1bdc6f8ae28238f3a7f0bd5ebed7280b461cf12c74f72288b64ed87af9ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / ipylangchat-0.0.2-py2.py3-none-any.whl

Download URL ipylangchat-0.0.2-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
491815b4b985e06235f69da4db665aca0333939e68d11cfebbcc81cc5e29c857
BLAKE2b-256 checksum
How to use checksums
49a5143a123f913d4c740b26e9216e09a7ff53b7176c66bc004431f2d93cd7c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page