Skip to main content

Unique Interface

Build a black-and-white chat or file-review panel inside Colab, JupyterLab, or a VS Code Python notebook. Both components use the Unique logo. The package renders through ipywidgets and runs callbacks in the notebook kernel.

%pip install unique-interface
from unique_interface import ChatInterface

def reply(message, history):
    return f"You wrote: {message}"

chat = ChatInterface(reply, title="My chat").launch()

The dark chat panel places your messages on the right and replies on the left, with a composer below. Choose New chat to start a conversation and use the sidebar to revisit earlier conversations during the widget session.

String replies appear word by word after the callback returns. Use word_delay=0 for instant display. For live updates while a model generates text, supply a callback that yields successive text chunks. Retry replaces the last answer, and Clear applies to the current thread.

def stream_reply(message, history):
    yield "You asked: "
    yield message

chat = ChatInterface(stream_reply).launch()

The callback receives the new text and previous messages as role/content dictionaries. Supply your own model or Python function. A failed callback leaves the conversation available for retry.

from unique_interface import FileInterface

def inspect_file(path, folder):
    return f"{path.stat().st_size} bytes received", None

panel = FileInterface(inspect_file, title="Inspect a file").launch()

The file callback receives a temporary input path and working directory. Return a plain-text summary and optionally a generated path for download. The input limit defaults to 10 MiB. In Colab enable the custom widget manager before launching. In local JupyterLab or desktop VS Code choose the Python kernel with this package installed.

Run UniqueChat · Run SheetReview

Metadata

Release files for unique-interface 0.1.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 unique-interface 0.1.2
File Size Uploaded Provenance Actions
unique_interface-0.1.2.tar.gz 15.3 kB With provenance Details for unique_interface-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unique-interface 0.1.2
File Interpreter ABI Platform Actions
unique_interface-0.1.2-py3-none-any.whl Python 3 none any Details for unique_interface-0.1.2-py3-none-any.whl

Total release size: 28.5 kB

Release files / unique_interface-0.1.2.tar.gz

Download URL unique_interface-0.1.2.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
842a6f1210f56ba402a697a6171498ba776bf883a7c8699e2a38022d6c2e60c5
BLAKE2b-256 checksum
How to use checksums
cd6f651999d070c33a8e07b386b2da8527b2e8f2df969a4964cb6da4978de124
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / unique_interface-0.1.2-py3-none-any.whl

Download URL unique_interface-0.1.2-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42260b060c463926274fa852dc70280da5702d13ede60deceecc22a49d14dc39
BLAKE2b-256 checksum
How to use checksums
b358fff1a4dd4a3ec6d3b07ad4df560083ebacc3e4e790a5881abb30138faf9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for unique-interface 0.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for unique_interface-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

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.

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