Skip to content
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

Add Github Copilot-like code completion/suggestion functionality #268

Closed
michaelchia opened this issue Jul 15, 2023 · 6 comments · Fixed by #465
Closed

Add Github Copilot-like code completion/suggestion functionality #268

michaelchia opened this issue Jul 15, 2023 · 6 comments · Fixed by #465
Labels
enhancement New feature or request
Milestone

Comments

@michaelchia
Copy link
Collaborator

Problem

  • Is there any future plans for adding a code completion/suggestion type functionality in this extension?
  • Something similar to a github copilot or starcoder's jupytercoder chrome extension (https://github.com/bigcode-project/jupytercoder)
  • Would be ideal if able to show code suggestions before accepting them as per those existing tools.
    • But if the jupyter UI is unable to do that natively, just having a hot key to trigger the autocomplete without showing the suggestion would be fine as well.
  • Would prefer something that isn't magic based as it would be troublesome to attach the magic in every cell.

Proposed Solution

  • On the server side, may require defining new providers for LLMs that output code given code prefix and optional suffix (for fill in the blank).
  • E.g. huggingface starcoder and google's code-gecko.
  • Maybe be able to use general LLMs by providing a prompt template that returns code.

Additional context

  • I am using jupyter in a corporate setting where I am unable to install chrome extensions (starcoder's jupyter plugin) or vscode (github copilot).
@michaelchia michaelchia added the enhancement New feature or request label Jul 15, 2023
@JasonWeill
Copy link
Collaborator

Currently, Jupyter AI is designed such that it only sends a query to a language model when the user explicitly requests to do so. Autocompletion and automatic code suggestion would change that design principle, so we might have to think about the best ways to make users opt in to share their code with a language model to make this work. Thank you for your suggestion!

@JasonWeill
Copy link
Collaborator

Related automated functionality issue: #290

@krassowski
Copy link
Member

Related JupyterLab issue: Integrate github copilot with jupyterlab #14267.

@krassowski
Copy link
Member

Just highlighting that a pull request to core JupyterLab adding inline completer that could enable this feature is ready for review: jupyterlab/jupyterlab#15160.

@JasonWeill
Copy link
Collaborator

jupyterlab/jupyterlab#15160 is now merged into JupyterLab, so this issue may be redundant.

@krassowski
Copy link
Member

I believe this can be closed. #465 implemented this, but did not auto-close this issue because it was initially merged into a non-main branch.

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

Successfully merging a pull request may close this issue.

3 participants