You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version (& distribution if applicable, e.g. Anaconda): 3.9.5
Expected behaviour
No warnings on import statements
Actual behaviour
However these modules can be imported without an error. That being said, when I log onto the remote Linux desktop and run VSCode locally on that machine, the warnings do not exist.
The text was updated successfully, but these errors were encountered:
The notebook kernel isn't the interpreter that Pylance uses; can you try opening up a regular Python file, then ensuring that the interpreter that's selected at the bottom left is the same one that is selected for the notebook?
Yes that solved the issue. Pylance not using the notebook kernel by default does not make sense to me. Why do I have to change it from another regular python script?
The kernel and selected interpreter are separate; it used to be that both UIs were shown in notebooks, but that was changed at some point. I believe microsoft/vscode-jupyter#6333 is the issue that tracks ensuring Pylance is using the right interpreter (which will take a bit of work to fix), but I do wish that this mismatch were more visible while we work on trying to figure out a final solution.
I'm going to close this, as the linked issue is the place this is being tracked.
Environment data
Expected behaviour
No warnings on import statements
Actual behaviour
However these modules can be imported without an error. That being said, when I log onto the remote Linux desktop and run VSCode locally on that machine, the warnings do not exist.
The text was updated successfully, but these errors were encountered: