Skip to main content

ipychat: The AI IPython

Version Python Versions License

ipychat is an AI IPython REPL that lets you understand, debug, and write better code faster.

Features

  • Context-Aware: Automatically uses relevant context from your IPython session
  • Rich Output: Markdown-formatted responses with syntax highlighting
  • Multiple AI Models: Supports GPT-4o, Claude 3.5 Sonnet, and Gemini. Local models coming soon.
  • Interactive Configuration: Easy model switching and configuration through magic commands

Installation

You can install ipychat using pip:

$ pip install ipychat

Usage

You can start the REPL by running the ipychat command:

$ ipychat
Welcome to ipychat! Use %ask to chat with gpt-4o.
You can change models using %models.

In [1]:

Alternatively, you can load the ipychat extension in an IPython session:

In [1]: %load_ext ipychat

You can then start asking the model any question using the %ask magic.

In [1]: %ask what can I do with the cities dataframe

You can change the current model using the %models magic.

In [1]: %models

Configuration

Based on the model you want to use, either set OPENAI_API_KEY, or ANTHROPIC_API_KEY, or both environment variables. You can also run ipychat config to configure ipychat interactively.

Contributing

Contributions are welcome! Please feel free to submit a pull request.

Versioning

ipychat uses Semantic Versioning. For the available versions, see the tags on the GitHub repository.

License

This project is licensed under the Apache License, see the LICENSE file for details.

Metadata

Release files for ipychat 0.2.1

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

Source distribution (sdist)

Source distribution for ipychat 0.2.1
File Size Uploaded
ipychat-0.2.1.tar.gz 19.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ipychat 0.2.1
File Interpreter ABI Platform
ipychat-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 36.2 kB

Release files / ipychat-0.2.1.tar.gz

Download URL ipychat-0.2.1.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dadcfce7679f096c542f20004d7885250d0219a0468958329a4e7122ccab4159
BLAKE2b-256 checksum
How to use checksums
bae498b113f05be6b88b3a8e29d886946b6e37ece23b75c5a9986ea25ea887f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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 Dec 30, 2024.

Transparency log

Release files / ipychat-0.2.1-py3-none-any.whl

Download URL ipychat-0.2.1-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
476a27f13986e58d9234166e73927e81dae888cf930d63e4758bb6d37ff7d43a
BLAKE2b-256 checksum
How to use checksums
21618929532ae8b924b1a425f16b4bc4123044104bb6681e6150528393ec924f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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 Dec 30, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

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