I have connected a Github repository to my Databricks workspace, and am trying to import a module that's in this repo into a notebook also within the repo. The structure is as such:
Repo_Name
- Checks.py
- Test.ipynb
The path to this repo is in my sys.path(), yet I still get ModuleNotFoundError: No module named 'Checks'
. When I try to do import Checks
. This link explains that you should be able to import any modules that are in the PATH. Does anyone know why it might still not be working?
.py
extension)./Workspace/Repos/<username>/repro0812
to sys.path and try to import the sample module from this repo, it throws the same error.check
andsample2
. The following is an image for refernce..py
file after adding your repo.