Intellisense completions have duplicates when `python.pylanceLspNotebooksEnabled` is true
See original GitHub issueRepro steps:
- Set “python.pylanceLspNotebooksEnabled” to true
- Create a notebook
- Create some cells that create a dataframe
- Run the cell that creates the dataframe
- Create a new cell to get members.
- Type
df.ag
Result:
Without python.pylanceLspNotebooksEnabled
:
The root cause of this problem is the Jupyter extension is no longer creating the pylance server so we have no current way to query pylance for its list of completions to eliminate duplicates.
/cc @debonte
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Duplicate hints while typing expression in Visual Studio Code
In my case (for python ) i had the pylance extension added. When i disabled this, the problem went away, but features were...
Read more >Python in Visual Studio Code – June 2022 Release
We're excited to announce that the June 2022 release of the Python and Jupyter extensions for Visual Studio Code are now available.
Read more >Python Intellisense Performance Issues
I'm working on a Selenium project and use their WebDriver object within an class inherited by other classes I created. When I use...
Read more >Vscode showing duplicate suggestions, How to fix? - Reddit
Thanks! I'll surely be using it forget it's there next time I have issues :D.
Read more >11 Best VS Code extensions for Python (2022)
As a Python Developer or Data Scientist, you need the right tools to create ... IntelliSense support for auto-completion, code navigation, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me instead the duplicates appear in normal
.py
files once I open and run a Jupyter notebook, and with the folllowing settings:"python.pylanceLspNotebooksEnabled": false, "jupyter.pylanceHandlesNotebooks": true,
Setting
python.pylanceLspNotebooksEnabled
totrue
instead isn’t an option currently due to the issue https://github.com/microsoft/pylance-release/issues/3126, but putting both to false,"python.pylanceLspNotebooksEnabled": false, "jupyter.pylanceHandlesNotebooks": false,
gets rid of duplicates in both
.py
and.ipynb
files for me and makes things acceptable.where does one make this change ?