If you are using magics %%writefile my_file.py in a notebook beware of the location where you are writing that file.
In order to load that file as module in a recipe, the file you have written should
- either be in your python path
- or you should add the directory where it has been written to your python path.
You can find your python path with
for d in sys.path: