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

Code completion produces bad results for indented lines #1350

Open
andeplane opened this issue Mar 18, 2024 · 0 comments
Open

Code completion produces bad results for indented lines #1350

andeplane opened this issue Mar 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@andeplane
Copy link
Contributor

andeplane commented Mar 18, 2024

Description

Code completion does not function well on indented lines. I tested with JupyterLab 4.1.5 in JupyterLite and regular upstream. They do not give the same result, but I can't figure out why.

Reproduce

If you enable completion (not inline), and write the following code into an empty cell in JupyterLite

import pandas as pd

Then in a new cell type in

for i in range(5):
    pd.

and press enter on the annotation completion suggestion.
You would expect that the new code would be

for i in range(5):
    .annotations

I used code completion and noticed this behaviour.

Context

  • JupyterLite version: 2.1.3
  • Operating System and version: MacOS 13.0
  • Browser and version: Chrome 122.0.6261.128
@andeplane andeplane added the bug Something isn't working label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant