I use python 3.5 with Anaconda (python 3.6) and I have a problem with importing a class within the same folder, even though I did exactly as explained in other places.
In 04-Convolutional Neural Network
Folder I have
04-Convolutional Neural Network.ipynb
and logger.ipynb
files.
I want to import Logger class in logger.ipynb
to 04-Convolutional Neural Network.ipynb
First, I created a blank __init__.ipynb
file in the same folder, I used:
from .user import User
from .dir import Dir
But I get the following error
No module named '__main__.user'; '__main__' is not a package
Any idea why do I have this problem? maybe because of the ipynb file system?
Edit: The files are in Desktop/NN/.... if it's important