vscode-jupyter icon indicating copy to clipboard operation
vscode-jupyter copied to clipboard

Remote jupyter server reporting missing imports

Open jnlaia opened this issue 2 years ago • 0 comments

This is related to https://github.com/microsoft/vscode-jupyter/issues/13095 that was closed as it was deemed not important. Reopening a new issue again, as per the suggestion of the admin in the closed issue.

For all my career as a machine learning practicioner, I always used jupyter running on remote machines. So that is a very common working scenario. In my current setting, I need to do port forwarding (via kubernetes) to expose the 8080 port of the jupyter server. VSCode sees the remote link at a localhost address (I don't know if that is relevant or not).

VSCode is unable to resolve the imports

Import "lightgbm" could not be resolvedPylancereportMissingImports

even if I have in the local folder of the notebook a pyrightconfig.json that points VSCode at a local virtual environment that has that package installed

image

Tagging @DonJayamanne as he was the one who closed the previous issue, with the hope that this ticket adds to the incentive to make this happen

jnlaia avatar Jan 29 '24 14:01 jnlaia