'VS/Pylance Jupyter Notebook warning: import could not be resolved

I'm getting this warning: Import "module" could not be resolved I think it has to be something related to the environment. I'm using VSCode for a Jupyter Notebook and Anaconda. I think I should somehow align the environments. If I select in the right top corner the Anaconda kernel I can run but sometimes I have problems with paths.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source