#3371·GitNexus

Support Jupyter Notebook (.ipynb) indexing via Python code extraction

Author: aviadrCreated Sep 24, 2026Updated Sep 25, 2026
Labelsenhancement

Area

gitnexus (CLI / core / indexing / MCP server)

Problem or opportunity

Many data science, ML, AI, and Spark repositories contain significant business logic inside Jupyter notebooks. Currently, GitNexus supports Python analysis, but code stored in .ipynb files is not indexed and therefore cannot participate in graph generation, search, navigation, or dependency analysis. This creates blind spots when working with notebook-heavy repositories. GitNexus already relies on language-specific parsing and indexing pipelines for supported languages.

Proposed solution

Add support for .ipynb files by extracting code cells and passing the resulting Python source through the existing Python indexing pipeline.

Rather than implementing notebook-specific parsing logic, GitNexus could leverage existing notebook tooling to convert notebook code cells into Python source and then reuse the current Python analysis workflow.

This approach would:

Reuse existing Python language support Minimize implementation complexity Avoid maintaining a separate notebook parser Immediately improve support for data science and Spark repositories Examples

Use cases that would benefit:

Spark notebooks Machine learning experiments Data engineering pipelines Exploratory data analysis notebooks

Users should be able to discover functions, classes, imports, and dependencies defined inside notebooks just as they can for standard Python files.

Alternatives considered

No response

Acceptance criteria

Given a repository containing Jupyter notebooks:  

  • GitNexus indexes code contained in .ipynb files.
  • Functions defined in notebook code cells can be found through GitNexus queries.
  • Imports used in notebook code cells are included in dependency analysis.
  • Relationships between notebook-defined functions and other Python code are represented in the graph.
  • Analysis completes successfully without requiring notebooks to be executed.

Constraints

No response

Contribution

  • I am willing to open a PR for this (may need design discussion first).

Source: abhigyanpatwari/GitNexus