ipyllm
ipyllm is an open source IPython extension that seamlessly integrates Large Language Models (LLMs) into your live IPython environment. Built on top of the versatile llm package, ipyllm integrates an agent with full access to your IPython environment, so it can reason about your actual state of the application and IPython history. Caution: it runs code in your environment too.
- Contextual Debugging: when you are hunting a performance issue or a bug, your model can only reason with your code and some logs or tracecalls you feed into the chat. It would be even more helpful, if your agent could access and even interact with the current state of your application. This is what ipyllm brings.
- Effortless Data Exploration: ask
%llm What columns indfhave missing values?and the model inspects the live variables, writes the code and executes it in your session. - Diagnostic Shell Integration: run commands inside
%%llm --runand let the model explain failures and suggest fixes.
The code is freely available at GitHub and can be installed from PyPI.