The AI IPython
Project description
ipychat: The AI IPython
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dadcfce7679f096c542f20004d7885250d0219a0468958329a4e7122ccab4159
|
|
| MD5 |
4ebc5ebdc9814cef6f2a22b0543b4330
|
|
| BLAKE2b-256 |
bae498b113f05be6b88b3a8e29d886946b6e37ece23b75c5a9986ea25ea887f7
|
Provenance
The following attestation bundles were made for ipychat-0.2.1.tar.gz:
Publisher:
release.yml on vinayak-mehta/ipychat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ipychat-0.2.1.tar.gz -
Subject digest:
dadcfce7679f096c542f20004d7885250d0219a0468958329a4e7122ccab4159 - Sigstore transparency entry: 158233311
- Sigstore integration time:
-
Permalink:
vinayak-mehta/ipychat@94fd782d6b4c111b3a887bcb15213283c17950f6 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/vinayak-mehta
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@94fd782d6b4c111b3a887bcb15213283c17950f6 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
476a27f13986e58d9234166e73927e81dae888cf930d63e4758bb6d37ff7d43a
|
|
| MD5 |
9da542a832fd807dafcdcdb296696974
|
|
| BLAKE2b-256 |
21618929532ae8b924b1a425f16b4bc4123044104bb6681e6150528393ec924f
|
Provenance
The following attestation bundles were made for ipychat-0.2.1-py3-none-any.whl:
Publisher:
release.yml on vinayak-mehta/ipychat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ipychat-0.2.1-py3-none-any.whl -
Subject digest:
476a27f13986e58d9234166e73927e81dae888cf930d63e4758bb6d37ff7d43a - Sigstore transparency entry: 158233312
- Sigstore integration time:
-
Permalink:
vinayak-mehta/ipychat@94fd782d6b4c111b3a887bcb15213283c17950f6 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/vinayak-mehta
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@94fd782d6b4c111b3a887bcb15213283c17950f6 -
Trigger Event:
push
-
Statement type: