Import "numpy" could not be resolved; ipynb in vscode

Question:

Im in trouble with using umpy module in ipynb(jupyter notebook) file in vscode, it doesn’t work only in ipynb file. If I make new .py file and import modules, no error comes out.

Could anybody tell me why this happens?

Asked By: COTHE

||

Answers:

Click on the kernel version in the upper right corner, and then select the correct kernel (The one with numpy installed).

enter image description here

Answered By: JialeDu