An LLM assistant magic command for Google Colab notebooks.
Project description
colab-ask 🪄
Stop copy-pasting errors. colab-ask gives your LLM eyes inside your notebook.
It’s a magic command that sends your code, outputs, and even generated images (matplotlib, etc.) directly to models like Claude or GPT-4 for context-aware help.
Why use this?
- ** Context Aware:** It sees your text and code cells, and error traces.
- ** Vision Capable:** It can see embedded images and graphs.
- ** Native Integration:** Lives inside Colab. No alt-tabbing to ChatGPT.
- ** Privacy First:** Your data goes straight to the API. No middleman servers.
Quick Start
Run this in a cell to install and load the extension:
!pip install colab-ask
%load_ext colab_ask
1. The Basic Ask
Use %%ask to chat about your current notebook state.
%%ask
My training loop is stalling at epoch 5. based on the logs above, why?
2. The Vision Ask
Since colab-ask sees images, you can ask about plots:
# (After generating a matplotlib chart)
%%ask
Look at the plot above. Is the model overfitting?
Configuration
Change Model: Uses LiteLLM under the hood. Any supported model string works. Check https://docs.litellm.ai/docs/providers
%set_model claude-3-5-sonnet-20241022
Set System Prompt: Want a specific teaching style?
%%set_sys
You are a senior Python engineer. Be concise.
Focus on performance optimization and vectorized operations.
Requirements
- Google Colab
- API Keys: Add your keys (e.g.,
ANTHROPIC_API_KEY,OPENAI_API_KEY) to Colab Secrets (the key icon on the left sidebar).
Privacy & Data
- Direct Communication: Notebook data is sent directly from your browser/runtime to the LLM provider (OpenAI/Anthropic/Google).
- Zero Logs: We do not run a middleware server. We do not store your code.
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 colab_ask-0.1.0.tar.gz.
File metadata
- Download URL: colab_ask-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c46c53196e78d3d65dcaf7bf5d78df9d5f38a6036b50cc04c27b0f168ad7abe1
|
|
| MD5 |
f006b0fd29ad7548c95fb97658e155e2
|
|
| BLAKE2b-256 |
9e7a08e65293d280f77d16951da59e58744616819e7dc7075121e4b72aa10d01
|
File details
Details for the file colab_ask-0.1.0-py3-none-any.whl.
File metadata
- Download URL: colab_ask-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c13e80dfd1363e79880fa3105e6114a7b0729e6aa27e60008dbb6e3532829c8
|
|
| MD5 |
1995665c701d9e01967c0d2b472fd267
|
|
| BLAKE2b-256 |
4c38834faba89c6e60bcca911494540eb09258c03b4255b3b4fe8de2aaa1d9cc
|