-
Notifications
You must be signed in to change notification settings - Fork 287
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
Intellisense not working with jupyter extension #15702
Comments
Jedi doesn't currently support notebook models, so that's not expected to provide intellisense since IW is backed by a notebook. Are you executing the import statement in the interactive window? Pylance doesn't provide intellisense until the first cell is executed (known issue) |
@amunger yes the behavior is no different for me before or after execution of a cell (in either notebook or interactive window). When checking this though, I did realize that the effect of the jupyter extension enabled vs not is also inconsistent, modified the original post to reflect this. The presence of the error log noted does seem to be consistently linked to the bug as far as I can tell, although only on the pylance side not jedi. I'm confused by your comment on Jedi though, since it is working just fine for me in an older version (code 1.85.2, python 2024.2.1, jupyter 2023.9.100. Are you referring to features that use the active kernel vs just static analysis (eg jupyter.enableExtendedKernelCompletions)? As a side note, it would be great if the respective notebook support for pylance and jedi was better documented in general! |
@DonJayamanne |
@bschnurr @heejaechang Please can you have a look at this. |
After doing some coarse search of older versions, it seems like this issue was introduced with the 2023.11 version of the extension.
From: Don Jayamanne ***@***.***>
Date: Tuesday, May 21, 2024 at 9:03 PM
To: microsoft/vscode-jupyter ***@***.***>
Cc: Tom Chartrand ***@***.***>, Author ***@***.***>
Subject: Re: [microsoft/vscode-jupyter] Intellisense not working with jupyter extension (Issue #15702)
@bschnurr<https://github.com/bschnurr> @heejaechang<https://github.com/heejaechang> Please can you have a look at this.
Last iteration we changed the way metadata is stored in the notebook, its no longer nested under metadata.metadata.
—
Reply to this email directly, view it on GitHub<#15702 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADB2IIFMPV32Y7HI65BUWXLZDQKINAVCNFSM6AAAAABICA2OD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRTHAZDIMZUGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@tmchartrand Are you still running into this issue. |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
This is still an issue with extension versions jupyter v2024.6.0, python v2024.10.0. Please re-open! |
I've confirmed that the pylance side actually seems fine in the recent extension versions, but the issues with non-Pylance intellisense continue. Opened new issue to reflect that. |
Applies To
What happened?
With a new python environment, created a new notebook and interactive window with a single import statement (
import os
). Intellisense does not work on this import (either hover hint or go to def). This is true for both Jedi and Pylance language server. Pylance does give an error in the log:Intellisense comes back in these windows if the jupyter extension is disabled.In some cases Pylance does work inconsistently, seemingly dependent on what is open when the window is reloaded (if only preferences are focused, I get no error and intellisense works, but not sure how consistent this is), but Jedi seems consistently blocked.VS Code Version
1.89.1
Jupyter Extension Version
v2024.4.2024042601 (pre-release)
Jupyter logs
Visual Studio Code (1.89.1, undefined, desktop) Jupyter Extension Version: 2024.4.2024042601. Python Extension Version: 2024.6.0. Pylance Extension Version: 2024.3.2. Platform: darwin (arm64). No workspace folder opened. 10:07:22.142 [info] Process Execution: ~/micromamba/bin/python -m pip list
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local
The text was updated successfully, but these errors were encountered: