-
Notifications
You must be signed in to change notification settings - Fork 769
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
"Import could not be resolved" for local packages and modules #3035
Comments
Do you have the same python environment selected for the notebook's kernel as your active python interpreter ('myenv': conda)? If you run a cell so that the kernel is started, does the warning go away? |
looks like we have set wrong root for notebook. you can set |
Dupe of #3017 |
As of this version of vscode:
this issue still exists.
|
I still have the same issue
Pylance: |
Also here still the same issue
Extensions (12)
|
Similar case but not same, Simply installing ipykernel worked for me. |
this issue is closed. please open new issue even if the symptom looks similar. otherwise, not sure whether people will take a look. |
Environment data
Expected behaviour
To recognize local packages and modules (as in python scripts)
Actual behaviour
highlighting local imports with a wavy underline with the message: Import "mypackage" could not be resolved
Note: in the provided screenshot, it is clear that this is a problem with the notebook, not the python extension in general.
Steps to reproduce:
Logs
The text was updated successfully, but these errors were encountered: