'how to import a ipynb file with importnb?

I would like to import a .ipynb file with importnb. I tried to use the classic:

from importnb import Notebook
with Notebook:
   import custom_probability

I get Import <module> could not be resolved

I'm using Anaconda but I'm not sure if it could be related to a path or environment problem.



Sources

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

Source: Stack Overflow

Solution Source