AI-Powered Chat Interface for Jupyter Notebooks
Project description
JupyterWhisper - AI-Powered Chat Interface for Jupyter Notebooks
JupyterWhisper transforms your Jupyter notebook environment by seamlessly integrating Claude AI capabilities. This extension enables natural chat interactions, intelligent code execution, and voice command features to enhance your notebook workflow.
✨ Key Features
- 🤖 Native integration with Claude 3.5 Sonnet
- 🎯 Intelligent code execution and cell management
- 🔍 Advanced search capabilities powered by Perplexity AI
- 🎙️ Voice command support using OpenAI Whisper
- 📝 Context-aware text processing and formatting
- 💬 Comprehensive chat history management
- ⚡ Real-time streaming responses
🚀 Installation
pip install jupyter_whisper
📋 Requirements
- Python 3.7+
- Jupyter Notebook
- Anthropic API key (for Claude integration)
- OpenAI API key (optional, for voice features)
- Perplexity API key (required for advanced search capabilities)
🏁 Quick Start
Linux/MacOS Configuration
# Add to ~/.bashrc or ~/.zshrc
echo 'export ANTHROPIC_API_KEY="your-key-here"' >> ~/.bashrc
echo 'export OPENAI_API_KEY="your-key-here"' >> ~/.bashrc # Optional for voice features
echo 'export PERPLEXITY_API_KEY="your-key-here"' >> ~/.bashrc # For search features
source ~/.bashrc
Windows Configuration
# Run in PowerShell as administrator
[Environment]::SetEnvironmentVariable("ANTHROPIC_API_KEY", "your-key-here", "User")
[Environment]::SetEnvironmentVariable("OPENAI_API_KEY", "your-key-here", "User")
[Environment]::SetEnvironmentVariable("PERPLEXITY_API_KEY", "your-key-here", "User")
Python Configuration
import os
# Set environment variables programmatically
os.environ["ANTHROPIC_API_KEY"] = "your-key-here"
os.environ["OPENAI_API_KEY"] = "your-key-here" # Optional for voice
os.environ["PERPLEXITY_API_KEY"] = "your-key-here" # For search
- Import and start using JupyterWhisper:
import jupyter_whisper as jw
💡 Usage
Basic Chat
Interact with the AI using the %%user
magic command:
%%user
How do I read a CSV file using pandas?
Online Search
Access web information directly within your notebook:
style = "Be precise and concise"
question = "What's new in Python 3.12?"
search_online(style, question)
Voice Commands
Leverage voice input capabilities:
- Control recording with keyboard shortcuts
- Automatic speech-to-text conversion
- Seamless chat interface integration
History Management
Access your conversation history:
hist() # Display formatted chat history
🛠️ Advanced Features
Magic Commands
%%user [index]
- Initiate a user message%%assistant [index]
- Include assistant response- Multi-language support (Python, R, SQL, etc.)
Smart Processing
- Automatic code detection and execution
- Dynamic cell type conversion
- Live markdown rendering
- Syntax highlighting support
🔧 Development
Setup Development Environment
git clone https://github.com/yourusername/jupyter_whisper.git
cd jupyter_whisper
pip install -e ".[dev]"
Running Tests
python -m pytest tests/
🤝 Contributing
We welcome contributions! Please submit your Pull Requests.
📄 License
MIT License - see LICENSE for details
🙏 Credits
Powered by:
- Claude by Anthropic
- OpenAI Whisper
- Perplexity AI
Made with ❤️ by Maxime
Note: This project is independent and not affiliated with Anthropic, OpenAI, or Perplexity AI.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file jupyter_whisper-0.1.0b1.tar.gz
.
File metadata
- Download URL: jupyter_whisper-0.1.0b1.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 853a8873bcde6c9c47b55b320435b962be37460734b4c85e3c0676bac7e3ae31 |
|
MD5 | 6b7f95224a010673d557566b8afae7ad |
|
BLAKE2b-256 | a0102ab68276d92f9c218b1d2d7969dd63c3acedcd2fd4a7cf14f48817b4fb1a |
File details
Details for the file jupyter_whisper-0.1.0b1-py3-none-any.whl
.
File metadata
- Download URL: jupyter_whisper-0.1.0b1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67a743654bdc54ddbf0b1cc4f0d4b0a14b7b60210e5e419cfdecb9265b4c1230 |
|
MD5 | be471545a507d4f19a4cbeb1358ee322 |
|
BLAKE2b-256 | ba255f2b1d29844bde188e105edcebfc4c0e52309dab608a204fd29873dce23b |