Apart from the ipynb kernel python environment, make sure you also have selected the correct python interpreter for the project that containing the notebook you use.