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

Completions in Jupyter include only the current cell #430

Open
anutkk opened this issue Jan 15, 2025 · 0 comments
Open

Completions in Jupyter include only the current cell #430

anutkk opened this issue Jan 15, 2025 · 0 comments

Comments

@anutkk
Copy link

anutkk commented Jan 15, 2025

Describe the bug
When trying autocompletion in a Python Jupyter notebook, Twinny sends as context only the current cell's content, although in general surrounding cells are critical.

To Reproduce
Run Twinny, open a new cell in a Jupyter notebook, and contemplate it generating unrelated code.

Expected behavior
The FIM should include the surrounding cells' contents.

Screenshots
For example, in a Python Jupyter notebook, Twinny suggests unrelated C code:

{98C41A6C-4424-40D5-8750-216F55BE024E}

The request does not include the surrounding cells:
image

Logging
Rnable logging in the extension settings if not already enabled (you may need to restart vscode if you don't see logs). Proivide the log with the report.

API Provider
Ollama (but irrelevant)

Chat or Auto Complete?
FIM - autocomplete

Model Name
qwen2.5-coder:1.5b-base-fp16

Desktop (please complete the following information):

  • OS: Linux
  • Version: v3.21.1

Additional context
N/A

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

No branches or pull requests

1 participant