Within the same project directory, I have one file solution.ipynb and other called model.py. In the file solution.ipynb I have to import the module model.py.
Altough both files are in the same directory, when I use the below code:
import import_ipynb
import model
I still get the error: ModuleNotFoundError: No module named 'model'
Please note: I'm using the VSCode to open and write on the .ipynb file. Strangely enough, when I open the .ipynb file with Jupyter lab, the module model.py can be imported without problems.
What I've already tried: (1) install the import-ipynb and reference it above (as seen in the first line of the code) and (2) add a __init__.py file within the directory where the .ipynb is located.