Use nbimporter to import .ipynb files directly.
Ensure the notebook path is correct and the notebook contains only executable Python code.
Alternatively, convert the notebook to a .py file and import it as a regular module.