I am a novice programmer and have ran into an issue trying to import a function I have written into another file. I think my issue probably has something to do with how my directory is set up. I run python in a jupyter notebook, and my directory looks something like this now:
-Desktop
|
-pythonCode
|
-leisure
|
-quadratics
|
-quadEquatSolver.ipynb
-_init_.ipynb
-problems.ipynb
I want to import the function quadSolver() from quadEquatSolver.ipynb into my problems.ipynb file. I have read a few solutions on this forum, but what I found either did not work for me, or was over my head.
I have tried
from quadEquatSolver import quadSolver
But I get an error message that states the module is not found.
I also have tried
from . quadEquatSolver import quadSolver
and
from .quadEquatSolver import quadSolver
But this gives me the same issue.
Any guidance would be greatly appreciated.