neoxelox
dspy-inspector
Python

DSPy program/pipeline inspector widget for Jupyter/VSCode Notebooks.

Last updated Feb 17, 2026
45
Stars
3
Forks
0
Issues
0
Stars/day
Attention Score
17
Language breakdown
No language data available.
Files click to expand
README

dspy-inspector 🔍 BETA

DSPy program/pipeline inspector widget for Jupyter/VSCode Notebooks. 🔭

Note: DSPy is going through a big refactor at this moment. Updates in the parsing logic are going to be halted in the meantime.

Demo

Dark theme is coming soon™.

Install

👉 pip install dspy-inspector

Usage

from dspy_inspector import inspect

class MultiHopRAG(dspy.Module): def init(self, passagesperhop=3, max_hops=2): ...

def forward(self, question): ...

inspect(MultiHopRAG)

Or 👇

program = MultiHopRAG() inspect(program) # Automatically updates program("How many storeys are in the castle that David Gregory inherited?")

Check an example in the multihop_rag.ipynb notebook.

All example notebooks are cached, no calls to LLMs are needed to run them.

Roadmap

This is a personal project I made to better understand what were my DSPy programs actually doing underneath. This extension is currently in BETA, so, expect bugs. For a roadmap on what things must be fixed or done check all the TODOs inside the source code.

Developing

To setup the virtual developing environment, follow these steps:

  • Install dependencies: poetry install
  • Install tools: poetry run inv tool.install --include "dev*"
  • Create kernel: poetry run python -m ipykernel install --user --name dspy-inspector --display-name "DSPy Inspector"
  • Select dspy-inspector kernel in all notebooks
Run poetry run inv help for further commands and poetry run inv <command> --help for their usage.

Contribute

Feel free to contribute to this project : ) .

License

This project is licensed under the GPL-3.0 License - read the LICENSE file for details.

🔗 More in this category

© 2026 GitRepoTrend · neoxelox/dspy-inspector · Updated daily from GitHub