microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.29k stars 290 forks source link

dataframe column completions don't work with latest jedi 0.19.0 #14012

Closed Yoyokrazy closed 10 months ago

Yoyokrazy commented 1 year ago

First failing commit

Logs:

  1) DataScience - VSCode Intellisense Notebook - (Code Completion via Jupyter) withJedi @lsp
       Dataframe column completions:

      Error: Unable to get completions for cell vscode-notebook-cell:/home/runner/work/vscode-jupyter/vscode-jupyter/temp/emptyPythonf61110b1-b736-4a2e-9a48-dc368a72ab10..ipynb#W4sZmlsZQ%3D%3D
      + expected - actual

      at Timeout.<anonymous> (src/test/common.ts:102:20)
      at listOnTimeout (node:internal/timers:559:17)
      at processTimers (node:internal/timers:502:7)
amunger commented 1 year ago

run failure link https://github.com/microsoft/vscode-jupyter/actions/runs/5716878516/job/15491670585#logs

amunger commented 1 year ago

repro steps

set config "jupyter.enableExtendedKernelCompletions": true %pip install jedi==0.19.0 %pip install pandas restart the kernel run the cell

import pandas as pd
data = {'name': ['Alice', 'Bob', 'Charlie', 'David'],
        'age': [25, 30, 35, 40],
        'city': ['New York', 'Paris', 'London', 'Tokyo']}
df = pd.DataFrame(data)

add a cell below, type df.name.add and trigger completions ctrl+.

:bug: no completions

Justype commented 1 year ago

Same issue. I am using code-server. So I can only use Jedi. The intellisense only works in the first chunk. If you add another chunk, the intellisense does not work.

DonJayamanne commented 10 months ago

Works now, closing as completed.