We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let us suppose my main notebook (main.ipynb) is next to a folder otherpath containing another notebook to be imported (to_be_imported.ipynb).
If I do import ipynb.fs.defs.otherpath.to_be_imported
import ipynb.fs.defs.otherpath.to_be_imported
I get ModuleNotFoundError: No module named 'ipynb.fs.defs.otherpath'
ModuleNotFoundError: No module named 'ipynb.fs.defs.otherpath'
If I move to_be_imported.ipynb in the same folder of the main file, everything works.
The text was updated successfully, but these errors were encountered:
I have this same issue
Sorry, something went wrong.
Seeems ipynb doesn't support package imports i.e.
ipynb
|- package_a |- __init__.py |- module_a.ipynb |- module_b.ipynb import ipynb.fs.full.package_a.module_a
As a result, I've resorted to:
|- package_a |- module_a.ipynb |- module_b.ipynb import sys import os sys.path.insert(0, f"{os.getcwd()}/package_a") import ipynb.fs.full.module_a
No branches or pull requests
Let us suppose my main notebook (main.ipynb) is next to a folder otherpath containing another notebook to be imported (to_be_imported.ipynb).
If I do
import ipynb.fs.defs.otherpath.to_be_imported
I get
ModuleNotFoundError: No module named 'ipynb.fs.defs.otherpath'
If I move to_be_imported.ipynb in the same folder of the main file, everything works.
The text was updated successfully, but these errors were encountered: