Skip to content

GitHub Copilot Integration #1310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hideyukikodama opened this issue Apr 7, 2025 · 0 comments
Open

GitHub Copilot Integration #1310

hideyukikodama opened this issue Apr 7, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@hideyukikodama
Copy link

hideyukikodama commented Apr 7, 2025

Type

New feature suggestion

Background

Many developers extensively utilize GitHub Copilot in IDEs like VS Code or IntelliJ to accelerate coding through AI-powered suggestions. Hence, it's worth adding native GitHub Copilot support in jupyter-ai, similar to other LLM integrations.

This suggestion also offers a solution to the previously blocked GitHub issue related to Copilot integration, which was paused due to concerns around reverse-engineering the GitHub Copilot API: #833

Instead of relying on unofficial means, my approach uses GitHub’s official Copilot Language Server Protocol (LSP) SDK: https://github.com/github/copilot-language-server-release

Proposed Implementation

The core idea is to leverage GitHub Copilot’s official platform-specific LSP binary as a bridge between jupyter-ai and the Copilot API in supported and compliant ways.

Features Implemented (POC)

I’ve created a proof-of-concept implementation in this PR: #1311

Key features include:

  • ✅ GitHub Copilot authentication flow
    • Implemented using a new /github slash command (/github signin and /github signout) to avoid UI changes.
  • ✅ Inline code completions in notebook code cells

Screen capture demo Movie link

Not Yet Implemented (in this POC)

This is an initial proof of concept, and I'm very open to your feedback, improvements, or suggestions on how to better align this with the goals and design principle of jupyter-ai https://jupyter-ai.readthedocs.io/en/latest/contributors/index.html#design-principles

Thank you for taking the time to review this. I'm excited to hear your thoughts and contribute to this amazing open-source project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant