Skip to main content

No project description provided

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 and Claude 3.5 Sonnet. 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.1.1.tar.gz (18.9 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.1.1-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ipychat-0.1.1.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.15

File hashes

Hashes for ipychat-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9240d67bf34ce316e0fd8ad115f88de586687a0c64417a884349d234c51dd350
MD5 a82ea9babbace893ee1fa8ea6f83a804
BLAKE2b-256 91a7f11d6a5b69d59c467b6793fad42121edff0a40be8d7063a86f5d711b3f9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ipychat-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.15

File hashes

Hashes for ipychat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59c4f8e04779e18cefa7907c97463b3186ac82c4b1aa9de670ccfbc65806eac7
MD5 027862e11e913b80645b3d2ca8209250
BLAKE2b-256 4e0b8bcf012ac3b97c1314aa8c6eea3e17c90a2906cecbca67401de1b5c84c91

See more details on using hashes here.

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