Skip to main content

The AI IPython

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipychat-0.2.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipychat-0.2.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file ipychat-0.2.1.tar.gz.

File metadata

  • Download URL: ipychat-0.2.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for ipychat-0.2.1.tar.gz
Algorithm Hash digest
SHA256 dadcfce7679f096c542f20004d7885250d0219a0468958329a4e7122ccab4159
MD5 4ebc5ebdc9814cef6f2a22b0543b4330
BLAKE2b-256 bae498b113f05be6b88b3a8e29d886946b6e37ece23b75c5a9986ea25ea887f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for ipychat-0.2.1.tar.gz:

Publisher: release.yml on vinayak-mehta/ipychat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ipychat-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ipychat-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for ipychat-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 476a27f13986e58d9234166e73927e81dae888cf930d63e4758bb6d37ff7d43a
MD5 9da542a832fd807dafcdcdb296696974
BLAKE2b-256 21618929532ae8b924b1a425f16b4bc4123044104bb6681e6150528393ec924f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ipychat-0.2.1-py3-none-any.whl:

Publisher: release.yml on vinayak-mehta/ipychat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page